Skip to content

Commit

Permalink
touched up image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 6, 2024
1 parent ca4c7a4 commit 1fb06db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get Docker image tag from git tag
id: imagetag
run: |
echo "DOCKER_IMAGE_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "IMAGE_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v3
Expand All @@ -104,5 +105,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.imagetag.outputs.IMAGE_TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 1fb06db

Please sign in to comment.