Skip to content

Commit

Permalink
GHA docker: Use the latest tag in stead of HEAD for building the prod…
Browse files Browse the repository at this point in the history
… container
  • Loading branch information
quartje committed Apr 20, 2023
1 parent b2acee3 commit f4ccdda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get latest tag
id: latest_tag
run: echo "name=tag::$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT

- name: Use latest tag
run: |
echo "The latest tag is ${{ steps.latest_tag.outputs.tag }}"
git checkout ${{ steps.latest_tag.outputs.tag }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit f4ccdda

Please sign in to comment.