Skip to content

Commit

Permalink
fix: tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed Apr 15, 2024
1 parent 710b1e1 commit 21392cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- name: Set tag
id: set-tag
run: |
SHORT_SHA=$(git rev-parse --short HEAD)
echo "::set-output name=version::commit-$SHORT_SHA"
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "::set-output name=tag::latest"
echo "::set-output name=tag::latest,commit-$SHORT_SHA"
else
echo "::set-output name=tag::dev"
echo "::set-output name=tag::dev,commit-$SHORT_SHA"
fi
- name: Docker meta
Expand Down Expand Up @@ -69,3 +71,4 @@ jobs:
cosign sign --key env://COSIGN_KEY --tlog-upload=false mtr.devops.telekom.de/caas/py-kube-downscaler@${{ steps.build-push.outputs.digest }}
env:
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}

0 comments on commit 21392cf

Please sign in to comment.