ci: stream releases over ssh
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -22,6 +22,9 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -90,9 +93,8 @@ jobs:
|
||||
echo "RELEASE=$RELEASE" >> "$GITHUB_ENV"
|
||||
SSH="ssh -i ~/.ssh/deploy_key -o BatchMode=yes"
|
||||
$SSH "$USER@$HOST" "mkdir -p /srv/marketplaces/releases/$RELEASE/frontend"
|
||||
rsync -az --delete \
|
||||
-e "$SSH" \
|
||||
"$SRC/" "$USER@$HOST:/srv/marketplaces/releases/$RELEASE/frontend/"
|
||||
tar -C "$SRC" -czf - . | $SSH "$USER@$HOST" \
|
||||
"tar -xzf - -C /srv/marketplaces/releases/$RELEASE/frontend"
|
||||
|
||||
- name: Activate release
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user