Skip to content

Commit

Permalink
build image with commit tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoffman authored Aug 24, 2023
1 parent 3109643 commit 1765a65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $SHORT_SHA
- name: Build and push
uses: docker/build-push-action@v4
with:
Expand All @@ -32,5 +35,6 @@ jobs:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/ya16sdb-app:latest
ghcr.io/${{ github.repository_owner }}/ya16sdb-app:$SHORT_SHA
build-args: |
"VERSION=${{ env.GIT_DESC }}"

0 comments on commit 1765a65

Please sign in to comment.