Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ jobs:

cd "${APP_DIR}"
git fetch --prune --tags origin
git checkout --detach "origin/${BRANCH}"
# tag deploys pass the tag name, which has no origin/ ref
if git rev-parse --verify -q "origin/${BRANCH}" >/dev/null; then
git checkout --detach "origin/${BRANCH}"
else
git checkout --detach "refs/tags/${BRANCH}"
fi

cd infra
umask 077
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
action: deploy
image_tag: ${{ github.ref_name }}
stack_name: pubstar
hostname: ${{ vars.PROD_HOSTNAME }}
hostname: app.pubstar.org
env_file: .env.enc
stack_file: stack.yml
uses_gateway: false
Expand Down
Loading