From 99548d86b1ffe4eb0436a32d9a5383a38c1ee3fa Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 3 Aug 2025 01:50:57 +0200 Subject: [PATCH] change: Call create-nginx from deploy and run it standalone only for changes to nginx itself --- .github/workflows/create-nginx.yaml | 5 ++++- .github/workflows/deploy.yaml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-nginx.yaml b/.github/workflows/create-nginx.yaml index eb53351..3f23511 100644 --- a/.github/workflows/create-nginx.yaml +++ b/.github/workflows/create-nginx.yaml @@ -6,7 +6,10 @@ on: branches: - main paths: - - 'docker/**/nginx/**' + - 'docker/**/nginx/certificates-available/**' + - 'docker/**/nginx/Dockerfile' + - 'docker/**/nginx/entrypoint.sh' + - 'docker/**/nginx/nginx.conf' env: REGISTRY: ghcr.io diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c7e56ab..e8d49cc 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -52,6 +52,8 @@ jobs: echo "should_deploy=false" >> $GITHUB_OUTPUT fi shell: bash + - name: Create nginx image + uses: 2martens/cloud-configuration/.github/workflows/create-nginx.yaml@main - name: Insert secrets if: steps.check.outputs.should_deploy == 'true' env: