Skip to content

Commit

Permalink
Merge pull request #434 from VOID404/add-latest-tag
Browse files Browse the repository at this point in the history
Add latest tag on main
  • Loading branch information
m00g3n authored Oct 23, 2024
2 parents 55a6abe + 1690f4d commit 467cf65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build_kim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
latest: ${{ steps.latest.outputs.latest || '' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -48,6 +49,9 @@ jobs:
- id: tag
if: github.event_name == 'push' && github.ref_type == 'tag'
run: echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
- id: latest
if: github.event.ref_name == github.event.repository.default_branch
run: echo "latest=latest" >> $GITHUB_OUTPUT

trivy:
permissions:
Expand Down Expand Up @@ -99,7 +103,9 @@ jobs:
name: infrastructure-manager
dockerfile: Dockerfile
context: .
tags: ${{ needs.setup.outputs.tag }}
tags: |
${{ needs.setup.outputs.tag }}
${{ needs.setup.outputs.latest }}
summary:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 467cf65

Please sign in to comment.