summaryrefslogtreecommitdiff
path: root/.github/workflows/build-and-deploy-prod.yml
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-and-deploy-prod.yml')
-rw-r--r--.github/workflows/build-and-deploy-prod.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.github/workflows/build-and-deploy-prod.yml b/.github/workflows/build-and-deploy-prod.yml
index ded8c93..060ae32 100644
--- a/.github/workflows/build-and-deploy-prod.yml
+++ b/.github/workflows/build-and-deploy-prod.yml
@@ -40,6 +40,8 @@ jobs:
context: .
file: ./Dockerfile
push: true
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
tags: |
ghcr.io/sayaandy/saya-today-web:latest
ghcr.io/sayaandy/saya-today-web:stable
@@ -73,13 +75,7 @@ jobs:
- name: Test SSH connection
run: |
- ssh -o ConnectTimeout=10 -i ~/.ssh/id_ed25519 svc_github@uz.saya.casa "echo 'SSH connection successful'"
-
- - name: Install Ansible
- shell: bash
- run: |
- sudo apt update
- sudo apt install -y ansible
+ ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/id_ed25519 svc_github@uz.saya.casa "echo 'SSH connection successful'"
- name: Run Ansible playbook
env:
@@ -87,8 +83,9 @@ jobs:
working-directory: ./deploy
run: |
ansible-playbook \
+ playbook.yml \
-i inventory.yml \
- -l prod playbook.yml \
+ -l prod \
--private-key ~/.ssh/id_ed25519 \
-u svc_github \
-e saya_today_web_auth_salt="${{ secrets.AUTH_SALT }}" \