-
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.
deploy images version fixup. S for security, lol
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 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 |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
env: | ||
SERVER_DOMAIN: waze.papko.org # Define server domain as a variable | ||
ADMIN_EMAIL: [email protected] # Define email as a variable | ||
IMAGE_NAME: papko26/gtw # Docker image name | ||
DEPLOY_DIR: /etc/gtw # Deployment directory on the server | ||
SERVER_DOMAIN: waze.papko.org | ||
ADMIN_EMAIL: [email protected] | ||
IMAGE_NAME: papko26/gtw | ||
DEPLOY_DIR: /etc/gtw | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -47,17 +47,17 @@ jobs: | |
needs: build-and-push | ||
|
||
env: | ||
SERVER_DOMAIN: waze.papko.org # Define server domain as a variable | ||
ADMIN_EMAIL: [email protected] # Define email as a variable | ||
IMAGE_NAME: papko26/gtw # Docker image name | ||
DEPLOY_DIR: /etc/gtw # Deployment directory on the server | ||
SERVER_DOMAIN: waze.papko.org | ||
ADMIN_EMAIL: [email protected] | ||
IMAGE_NAME: papko26/gtw | ||
DEPLOY_DIR: /etc/gtw | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Ensure necessary directories exist | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|
@@ -69,7 +69,7 @@ jobs: | |
mkdir -p ${{ env.DEPLOY_DIR }} | ||
- name: Copy NGINX configuration to the server | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|
@@ -78,7 +78,7 @@ jobs: | |
target: /etc/nginx/nginx.conf | ||
|
||
- name: First-time Certbot run (if needed) | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|
@@ -98,7 +98,7 @@ jobs: | |
fi | ||
- name: Reload NGINX | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|
@@ -107,7 +107,7 @@ jobs: | |
nginx -t && systemctl reload nginx | ||
- name: Copy docker-compose.yml to the server | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|
@@ -116,7 +116,7 @@ jobs: | |
target: ${{ env.DEPLOY_DIR }}/docker-compose.yml | ||
|
||
- name: Deploy via SSH | ||
uses: appleboy/[email protected].8 | ||
uses: appleboy/[email protected].7 | ||
with: | ||
host: ${{ env.SERVER_DOMAIN }} | ||
username: root | ||
|