Skip to content

Commit b786b4e

Browse files
committed
Deploy image on push to main.
Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com>
1 parent 69503d7 commit b786b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- id: get-image-tag
22+
name: define-docker-image-tag
2223
run: |
2324
git branch
2425
current_branch=${GITHUB_HEAD_REF/\//-}
@@ -27,7 +28,7 @@ jobs:
2728
echo "value=${image_tag}" >> "$GITHUB_OUTPUT"
2829
deploy-docker-image:
2930
needs: get-docker-image-tag-to-use
30-
if: ${{ (needs.get-docker-image-tag-to-use.outputs.image-tag != 'latest') }}
31+
if: ${{ (needs.get-docker-image-tag-to-use.outputs.image-tag != 'latest') || (github.event_name == 'push') }}
3132
uses: ./.github/workflows/deploy-docker-image.yml
3233
with:
3334
container-image: rcdt/robotics:${{ needs.get-docker-image-tag-to-use.outputs.image-tag }}

0 commit comments

Comments
 (0)