From ba430a8917156d92cea2912eb2154b66cde01166 Mon Sep 17 00:00:00 2001 From: Tim Dittler Date: Tue, 15 Oct 2024 15:02:42 +0200 Subject: [PATCH] Emit image build event for upwind Use gitops v6.3.2 Add variables to README --- .github/workflows/template_gitops.yml | 14 +++++++++++++- README.md | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/template_gitops.yml b/.github/workflows/template_gitops.yml index 9260c7d..1533e0c 100644 --- a/.github/workflows/template_gitops.yml +++ b/.github/workflows/template_gitops.yml @@ -57,6 +57,12 @@ on: required: false type: string default: "staffbase-actions[bot]@users.noreply.github.com" + upwind-client-id: + required: false + type: string + upwind-organization-id: + required: false + type: string working-directory: required: false type: string @@ -79,6 +85,8 @@ on: required: false private-key: required: false + upwind-client-secret: + required: false jobs: gitops: @@ -104,7 +112,8 @@ jobs: owner: ${{inputs.gitops-organization }} - name: GitOps (build, push and deploy a new Docker image) - uses: Staffbase/gitops-github-action@v6.2 + id: gitops + uses: Staffbase/gitops-github-action@v6.3.3 with: docker-registry: ${{ inputs.docker-registry }} docker-username: ${{ secrets.docker-username }} @@ -128,4 +137,7 @@ jobs: gitops-dev: ${{ inputs.gitops-dev }} gitops-stage: ${{ inputs.gitops-stage }} gitops-prod: ${{ inputs.gitops-prod }} + upwind-client-id: ${{ inputs.upwind-client-id }} + upwind-client-secret: ${{ secrets.upwind-client-secret }} + upwind-organization-id: ${{ inputs.upwind-organization-id }} working-directory: ${{ inputs.working-directory }} diff --git a/README.md b/README.md index ba8dcb3..b22e2fd 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,10 @@ jobs: # optional: files which should be updated for prod gitops-prod: |- your files + # optional: Upwind.io client ID + upwind-client-id: ${{ vars.UPWIND_CLIENT_ID }} + # optional: Upwind.io organization ID + upwind-organization-id: ${{ vars.UPWIND_ORGANIZATION_ID }} secrets: # optional: username for the docker registry docker-username: ${{ }} @@ -175,6 +179,8 @@ jobs: app-id: ${{ }} # optional: private key of the GitHub App private-key: ${{ }} + # optional: Upwind client secret + upwind-client-secret: ${{ secrets.UPWIND_CLIENT_SECRET }} ```