Compare commits
3 Commits
fix/temp-d
...
chore/depl
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f80ef973b | |||
| d592249efb | |||
| cfc97eb1ff |
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -22,6 +22,15 @@ jobs:
|
|||||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||||
port: ${{ secrets.SERVER_PORT }}
|
port: ${{ secrets.SERVER_PORT }}
|
||||||
script: |
|
script: |
|
||||||
|
set -euo pipefail
|
||||||
cd ~/terminalShop
|
cd ~/terminalShop
|
||||||
git pull
|
git fetch origin master
|
||||||
|
git reset --hard origin/master
|
||||||
|
deployed=$(git rev-parse HEAD)
|
||||||
|
expected="${{ github.sha }}"
|
||||||
|
if [ "$deployed" != "$expected" ]; then
|
||||||
|
echo "::error::deploy HEAD mismatch: box=$deployed expected=$expected"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
docker compose -f docker-compose.prod.yml up -d --build
|
docker compose -f docker-compose.prod.yml up -d --build
|
||||||
|
echo "deploy verified: HEAD=$deployed"
|
||||||
|
|||||||
@@ -71,3 +71,4 @@ uses SQLite by default so there's nothing to spin up.
|
|||||||
## inspiration
|
## inspiration
|
||||||
|
|
||||||
[terminal.shop](https://terminal.shop) for the original idea and most of the patterns in `pkg/tui/`. their source is open and worth reading.
|
[terminal.shop](https://terminal.shop) for the original idea and most of the patterns in `pkg/tui/`. their source is open and worth reading.
|
||||||
|
# something
|
||||||
|
|||||||
Reference in New Issue
Block a user