Skip to content

Commit

Permalink
gha: deploy if version kind is dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Apr 24, 2024
1 parent 7f9a185 commit eafd846
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
runs-on: ubuntu-latest
environment: default
outputs:
VERSION_KIND: ${{ steps.config_step.outputs.VERSION_KIND }}
VERSION_STR: ${{ steps.config_step.outputs.VERSION_STR }}
ALT_TAGS: ${{ steps.config_step.outputs.ALT_TAGS }}
steps:
- name: "Determine Version"
id: config_step
run: |-
#VER_KIND = 'alpha' (not deployed) | 'dev' | 'beta' | 'gold'
VER_KIND=alpha
VER_KIND=dev
VER_BUILD=$(date +%H%M)
# limit to only first 3 chars
Expand All @@ -45,6 +46,7 @@ jobs:
fi
echo "VERSION_STR=${VERSION_STR}" >> $GITHUB_OUTPUT
echo "ALT_TAGS=${ALT_TAGS}" >> $GITHUB_OUTPUT
echo "VERSION_KIND=${VER_KIND}" >> $GITHUB_OUTPUT
echo "::notice::Version KIND=${VER_KIND}, STR=${VERSION_STR}${ALT_TAGS}, INT=${VERSION_INT}"
#endjob build_cfg
Expand Down Expand Up @@ -80,7 +82,7 @@ jobs:
]
},
"deployment": {
"deploy_flag": "${{ github.ref_type == 'branch' }}",
"deploy_flag": "${{ needs.build_cfg.outputs.VERSION_KIND == 'dev' }}",
"k8s_project": "${{ env.K8S_PROJECT }}",
"k8s_container": "${{ env.K8S_CONTAINER }}",
"deploy_msg": "${{ env.SLACK_DEPLOY_MSG }}"
Expand Down

0 comments on commit eafd846

Please sign in to comment.