Skip to content

Commit

Permalink
build: add TAG env before ko publish
Browse files Browse the repository at this point in the history
  • Loading branch information
clementnuss committed Nov 24, 2021
1 parent 53fedac commit 9ceaa32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ jobs:
KO_DOCKER_REPO: docker.io/postfinance
- name: Run ko publish
run: |
export TAG=$(echo ${{ github.ref }} | cut -d "/" -f 3 - )
export COMMIT=$(git describe --abbrev=7 --always --long --match "v*" main)
ko publish ./cmd/kubelet-csr-approver/ --base-import-paths --tags $tag
ko publish ./cmd/kubelet-csr-approver/ --base-import-paths --tags $TAG
publish-untagged:
if: "!startsWith(github.ref, 'refs/tags/v')"
Expand Down

0 comments on commit 9ceaa32

Please sign in to comment.