-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,18 +128,7 @@ jobs: | |
echo -e "$NGX" > vhost.conf | ||
tr -d '\r' < vhost.conf > vhost_fixed.conf | ||
mv vhost_fixed.conf vhost.conf | ||
echo -e "This is create-nginx-vhost step:\n\nI was here at $(date)" > ngx.txt | ||
scp -o "StrictHostKeyChecking=no" -r vhost.conf "$HOST_USER@$HOST_URL:$GA_ENV_DEST" | ||
scp -o "StrictHostKeyChecking=no" -r ngx.txt "$HOST_USER@$HOST_URL:$GA_ENV_DEST" | ||
# - name: copy file via ssh key | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.HOST_URL }} | ||
# username: ${{ secrets.HOST_USER }} | ||
# port: 22 | ||
# key: ${{ secrets.HOST_SSH_KEY }} | ||
# source: "vhost.conf,ngx.txt" | ||
# target: $GA_ENV_DEST | ||
- name: Create Nginx vhost | ||
env: | ||
GA_NGX_PROXY: ${{ secrets.GA_NGX_PROXY }} | ||
|
@@ -254,18 +243,7 @@ jobs: | |
- name: Copy envfile | ||
run: | | ||
# Copy .env file into deploy server | ||
echo -e "This is deploy-app ga step speaking\n\nI was here at $(date)" > v.txt | ||
scp -o "StrictHostKeyChecking=no" -r "$GA_ENV_SRC/$GA_ENV_FILE" "$HOST_USER@$HOST_URL:$GA_ENV_DEST" | ||
scp -o "StrictHostKeyChecking=no" -r v.txt "$HOST_USER@$HOST_URL:$GA_ENV_DEST" | ||
# - name: copy envfile | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.HOST_URL }} | ||
# username: ${{ secrets.HOST_USER }} | ||
# port: 22 | ||
# key: ${{ secrets.HOST_SSH_KEY }} | ||
# source: "$GA_ENV_SRC/$GA_ENV_FILE,v.txt" | ||
# target: $GA_ENV_DEST | ||
- name: Deploy app | ||
run: | | ||
ssh -T -o "StrictHostKeyChecking=no" "$HOST_USER@$HOST_URL" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters