Skip to content

Commit

Permalink
Use commit hash to tag container images (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKostka authored Jan 29, 2025
1 parent 132df3e commit 41dbcae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docker.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:

jobs:
Expand All @@ -21,6 +19,8 @@ jobs:
uses: crazy-max/ghaction-docker-meta@v3.6.0
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
Expand All @@ -38,7 +38,6 @@ jobs:
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1.10.0
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -52,6 +51,6 @@ jobs:
platforms: linux/amd64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

0 comments on commit 41dbcae

Please sign in to comment.