Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
612eccf03b |
@@ -29,8 +29,10 @@ jobs:
|
||||
docker pull "$IMAGE:$TAG"
|
||||
docker tag "$IMAGE:$TAG" golfgame-app:latest
|
||||
|
||||
# Update code for compose/env changes
|
||||
git fetch origin
|
||||
# Update code for compose/env changes. `--tags --force` so a
|
||||
# moved tag (hotfix on top of existing version) updates locally
|
||||
# instead of silently checking out the stale cached position.
|
||||
git fetch origin --tags --force
|
||||
git checkout "$TAG"
|
||||
|
||||
# Restart app
|
||||
|
||||
@@ -21,8 +21,11 @@ jobs:
|
||||
|
||||
cd /opt/golfgame
|
||||
|
||||
# Pull latest code and checkout the release tag
|
||||
git fetch origin
|
||||
# Pull latest code and checkout the release tag. `--tags --force`
|
||||
# so that a tag moved on origin (e.g. hotfix on top of an existing
|
||||
# version) actually updates locally instead of silently reusing a
|
||||
# stale cached tag position.
|
||||
git fetch origin --tags --force
|
||||
git checkout "$TAG"
|
||||
|
||||
# Build the image
|
||||
|
||||
Reference in New Issue
Block a user