■ ■ ■ ■ ■ ■
.github/workflows/gcr.yml
| skipped 8 lines |
9 | 9 | | dockerloginbuildpush: |
10 | 10 | | runs-on: ubuntu-latest |
11 | 11 | | steps: |
12 | | - | #- uses: docker/login-action@v2 |
13 | 12 | | - name: login to GitHub Container Registry |
14 | | - | run: export CR_PAT=${{ secrets.CR_PAT }} |
15 | | - | run: echo $CR_PAT | docker login ghcr.io --username ${{ github.actor }} --password-stdin |
| 13 | + | uses: docker/login-action@v2 |
| 14 | + | with: |
| 15 | + | registry: ghcr.io |
| 16 | + | username: ${{ github.actor }} |
| 17 | + | password: ${{ secrets.CR_PAT }} |
16 | 18 | | - uses: actions/checkout@v2 |
17 | 19 | | - name: create image from repository |
18 | 20 | | run: docker build -t ghcr.io/${{ github.actor }}/hiphp . |
19 | 21 | | - name: push image to GitHub Container Registry |
20 | 22 | | run: docker push ghcr.io/${{ github.actor }}/hiphp:latest |
21 | | - | |