Skip to content

Commit

Permalink
Merge pull request #1947 from rksharma95/fix-latest-release-ci-tag
Browse files Browse the repository at this point in the history
fix(ci): use release tag to push kubearmor images
  • Loading branch information
rksharma95 authored Jan 21, 2025
2 parents 3a7003f + 7c9a6b0 commit 88f54a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ jobs:

- name: Compile libbpf
run: ./.github/workflows/install-libbpf.sh

- name: Get release tag
id: vars
run: |
if [ ${{ github.ref }} == "refs/heads/main" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
fi
- name: Login to Docker Hub
uses: docker/login-action@v2
Expand Down

0 comments on commit 88f54a6

Please sign in to comment.