Skip to content

Commit

Permalink
Can't do it inline, so do it in the docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgul committed Aug 20, 2023
1 parent 133b1e5 commit d61c1cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,18 @@ jobs:
run: |
if [ "$VERSION" == "latest" ]
then
echo TAGS="morgul/rpgkeeper:latest" >> $GITHUB_ENV
docker build -t morgul/rpgkeeper:latest .
else
echo TAGS="morgul/rpgkeeper:${VERSION} morgul/rpgkeeper:latest" >> $GITHUB_ENV
docker build -t morgul/rpgkeeper:${VERSION} -t morgul/rpgkeeper:latest .
fi
- name: Push docker
if: success()
uses: actions-hub/docker@master
with:
args: push morgul/rpgkeeper:latest $([ "$VERSION" != "latest" ] && morgul/rpgkeeper:${VERSION})
args: push ${TAGS}

# Deploys Beta docker
deploy-beta:
Expand Down

0 comments on commit d61c1cf

Please sign in to comment.