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, 8 insertions, 5 deletions
diff --git a/.github/workflows/build-and-deploy-prod.yml b/.github/workflows/build-and-deploy-prod.yml
index 060ae32..ded8c93 100644
--- a/.github/workflows/build-and-deploy-prod.yml
+++ b/.github/workflows/build-and-deploy-prod.yml
@@ -40,8 +40,6 @@ 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
@@ -75,7 +73,13 @@ jobs:
- name: Test SSH connection
run: |
- ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/id_ed25519 svc_github@uz.saya.casa "echo 'SSH connection successful'"
+ 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
- name: Run Ansible playbook
env:
@@ -83,9 +87,8 @@ jobs:
working-directory: ./deploy
run: |
ansible-playbook \
- playbook.yml \
-i inventory.yml \
- -l prod \
+ -l prod playbook.yml \
--private-key ~/.ssh/id_ed25519 \
-u svc_github \
-e saya_today_web_auth_salt="${{ secrets.AUTH_SALT }}" \