Skip to content

Commit 11f9d2d

Browse files
committed
passing ref name or latest
1 parent f9aae94 commit 11f9d2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-image.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
- name: Push dev to Docker Hub
2222
uses: docker/build-push-action@v2
2323
with:
24-
tags: eoepca/stac-manager-dev
24+
tags: eoepca/stac-manager:latest
2525
build-args: |
2626
PRIMARY_COLOR='#005ACD',SECONDARY_COLOR='#048A81',STAC_API_URL='https://eoapi.develop.eoepca.org/stac'
2727
- name: Push prod to Docker Hub
2828
uses: docker/build-push-action@v2
29+
if: github.ref_type == 'tag'
2930
with:
30-
tags: eoepca/stac-manager-prod
31+
tags: eoepca/stac-manager:${{ github.ref_name }}
3132
secrets: |
3233
id=keycloak_url,src=${{ secrets.KEYCLOAK_URL }}
3334
id=keycloak_realm,src=${{ secrets.KEYCLOAK_REALM }}

0 commit comments

Comments
 (0)