aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/docker.yml15
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