Skip to content

Commit

Permalink
Experimental attempt to update latest at the same time as a tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgul committed Aug 20, 2023
1 parent af9bf67 commit 660101c
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,26 @@ jobs:
- name: Build docker
if: success()
run: docker build -t morgul/rpgkeeper:${VERSION} .
run: |
if [ "$VERSION" == "latest" ]
then
docker build -t morgul/rpgkeeper:latest .
else
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:${VERSION}
run: |
if [ "$VERSION" == "latest" ]
then
docker push morgul/rpgkeeper:latest
else
docker push morgul/rpgkeeper:${VERSION} -t morgul/rpgkeeper:latest
fi
# uses: actions-hub/docker@master
# with:
# args: push morgul/rpgkeeper:${VERSION}

# Deploys Beta docker
deploy-beta:
Expand Down

0 comments on commit 660101c

Please sign in to comment.