From 2dda510959f46fc5763254488cb600ac90aac2ce Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 5 Jan 2025 00:37:15 +0100 Subject: ci: switch to `docker/login-action` --- .github/workflows/docker.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to '.github') 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 -- cgit v1.2.3