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.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/build-and-deploy-prod.yml b/.github/workflows/build-and-deploy-prod.yml
index 060ae32..4689e28 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
@@ -77,15 +75,20 @@ jobs:
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'"
+ - name: Install Ansible
+ shell: bash
+ run: |
+ sudo apt update
+ sudo apt install -y ansible
+
- name: Run Ansible playbook
env:
ANSIBLE_HOST_KEY_CHECKING: "False"
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 }}" \