Skip to content

Commit

Permalink
deploy images version fixup. S for security, lol
Browse files Browse the repository at this point in the history
  • Loading branch information
papko26 committed Nov 24, 2024
1 parent 65c9bdb commit 773790a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/gtw_stack_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 773790a

Please sign in to comment.