Skip to content

Commit

Permalink
build: add latest tag to docker image being pushed (#99)
Browse files Browse the repository at this point in the history
* build: add latest tag to docker image being pushed

* build: add latest tag only on main
  • Loading branch information
apaletta3 authored Mar 19, 2024
1 parent de3dd50 commit 36dffac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ jobs:
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: ${{ needs.prepare-environment.outputs.project_version }}
push: false
target: base3
secrets: inherit

push-and-tag-base-image-as-latest:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Push and Tag Base Image as Latest
needs:
- prepare-environment
- build-base3-image
uses: ./.github/workflows/build-image.yml
with:
project_name: ${{ needs.prepare-environment.outputs.project_name }}
project_version: latest
push: true
target: base3
secrets: inherit

0 comments on commit 36dffac

Please sign in to comment.