diff options
| author | pml68 <contact@pml68.dev> | 2025-01-05 00:37:15 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-01-05 00:37:15 +0100 |
| commit | 2dda510959f46fc5763254488cb600ac90aac2ce (patch) | |
| tree | 323c51de6e1508bbf9737b03909d913d540e3a78 | |
| parent | fix(ci): Dockerfile not found (diff) | |
| download | nvim-2dda510959f46fc5763254488cb600ac90aac2ce.tar.gz | |
ci: switch to `docker/login-action`
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/docker.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1ef204c..76e1842 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -30,12 +30,16 @@ jobs: contents: read steps: + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Log in to registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - name: Build and push image uses: docker/build-push-action@v6 with: @@ -43,9 +47,8 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max push: true - tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.image.tag }}:latest - labels: | - runnumber=${GITHUB_RUN_ID} + tags: | + ghcr.io/${{ github.repository_owner }}/${{ matrix.image.tag }}:latest - name: Delete previous releases uses: actions/delete-package-versions@v5 |
