From 38cb561f5f9048d26ac7f38176c928fd4e7f32df Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Mon, 4 May 2026 15:50:53 +0700 Subject: feat: enable gha buildx cache fix: use sha short from single source --- .github/workflows/build-and-deploy-prod.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.github/workflows/build-and-deploy-prod.yml') diff --git a/.github/workflows/build-and-deploy-prod.yml b/.github/workflows/build-and-deploy-prod.yml index 4689e28..d33f7af 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 @@ -87,8 +89,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 }}" \ -- cgit v1.3.1+13