Compare commits
2 Commits
2602d0c838
...
e8c48043ed
| Author | SHA1 | Date | |
|---|---|---|---|
| e8c48043ed | |||
| 358996cbf2 |
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -22,6 +22,9 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -90,9 +93,8 @@ jobs:
|
|||||||
echo "RELEASE=$RELEASE" >> "$GITHUB_ENV"
|
echo "RELEASE=$RELEASE" >> "$GITHUB_ENV"
|
||||||
SSH="ssh -i ~/.ssh/deploy_key -o BatchMode=yes"
|
SSH="ssh -i ~/.ssh/deploy_key -o BatchMode=yes"
|
||||||
$SSH "$USER@$HOST" "mkdir -p /srv/marketplaces/releases/$RELEASE/frontend"
|
$SSH "$USER@$HOST" "mkdir -p /srv/marketplaces/releases/$RELEASE/frontend"
|
||||||
rsync -az --delete \
|
tar -C "$SRC" -czf - . | $SSH "$USER@$HOST" \
|
||||||
-e "$SSH" \
|
"tar -xzf - -C /srv/marketplaces/releases/$RELEASE/frontend"
|
||||||
"$SRC/" "$USER@$HOST:/srv/marketplaces/releases/$RELEASE/frontend/"
|
|
||||||
|
|
||||||
- name: Activate release
|
- name: Activate release
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user