Skip to content

Commit

Permalink
Fix branch reference
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Aug 2, 2024
1 parent 6d79445 commit 4782097
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dea-coastlines-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
needs: [test]
runs-on: ubuntu-latest

# Only run on a push to the main branch OR a release
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release')
# Only run on a push to the develop branch OR a release
if: (github.event_name == 'push' && github.ref == 'refs/heads/develop') || (github.event_name == 'release')

steps:
- name: Checkout code
Expand All @@ -165,7 +165,7 @@ jobs:
image_name: ${{ env.IMAGE_NAME }}
image_tag: ${{ env.RELEASE }}

- name: Get git commit hash for push to main
- name: Get git commit hash to name unstable image
if: github.event_name != 'release'
run: |
echo "TAG=dev$(git rev-parse --short HEAD)" \
Expand All @@ -177,4 +177,4 @@ jobs:
with:
registry: 538673716275.dkr.ecr.ap-southeast-2.amazonaws.com
image_name: ${{ env.IMAGE_NAME }}
image_tag: latest,${{ env.TAG }}
image_tag: latest,${{ env.TAG }}

0 comments on commit 4782097

Please # to comment.