Skip to content

Commit

Permalink
ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
illinoisrobert committed Aug 5, 2024
1 parent 9a82ff9 commit e993124
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,21 @@ jobs:

runs-on: ubuntu-latest

env:
IMAGE_TYPE: $(test "$GITHUB_REF_TYPE" = "tag" && echo xbeta || echo dev)
IMAGE_TAG: $(test "$GITHUB_REF_TYPE" = "tag" && echo $GITHUB_REF_NAME)
#env:
# IMAGE_TYPE: $(test "$GITHUB_REF_TYPE" = "tag" && echo xbeta || echo dev)
# IMAGE_TAG: $(test "$GITHUB_REF_TYPE" = "tag" && echo $GITHUB_REF_NAME)

steps:
- name: update image vars
run: |
if [ "$GITHUB_REF_TYPE" = "tag" ]
then
echo IMAGE_TYPE=xbeta
echo IMAGE_TAG=$GITHUB_REF_NAME
else
echo IMAGE_TYPE=dev
echo IMAGE_TAG=
fi >> $GITHUB_ENV
- name: env
run: env
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit e993124

Please sign in to comment.