Skip to content

Commit

Permalink
try also short sha tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinkamp committed Mar 26, 2024
1 parent a9c8724 commit 89ed4ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Need to check out repo
- name: Checkout
uses: actions/checkout@v4

# Generate the default config (port 3333, admin=true)
- run: bin/gen-config

- name: Get short SHA
id: sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

# Uses the `docker/login-action` action to log in to the Container
# registry registry using the account and password that will publish the
# packages. Once published, the packages are scoped to the account
Expand Down Expand Up @@ -64,4 +67,6 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/zsteinkamp/${{ env.IMAGE_BASE }}-nginx:latest
tags:
- ${{ env.REGISTRY }}/zsteinkamp/${{ env.IMAGE_BASE }}-nginx:latest
- ${{ env.REGISTRY }}/zsteinkamp/${{ env.IMAGE_BASE }}-nginx:${{ steps.sha.outputs.sha_short }}

0 comments on commit 89ed4ed

Please sign in to comment.