Compare commits
2 Commits
chore/depl
...
fix/temp-d
| Author | SHA1 | Date | |
|---|---|---|---|
| 88bbdd2c5d | |||
| efa2d83cab |
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -22,15 +22,6 @@ 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 fetch origin master
|
git pull
|
||||||
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,4 +71,3 @@ 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