Skip to content

Commit

Permalink
Merge pull request #288 from Staffbase/upwind
Browse files Browse the repository at this point in the history
  • Loading branch information
timdittler authored Oct 21, 2024
2 parents ea39618 + ba430a8 commit 4cff453
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/template_gitops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -79,6 +85,8 @@ on:
required: false
private-key:
required: false
upwind-client-secret:
required: false

jobs:
gitops:
Expand All @@ -104,7 +112,8 @@ jobs:
owner: ${{inputs.gitops-organization }}

- name: GitOps (build, push and deploy a new Docker image)
uses: Staffbase/[email protected]
id: gitops
uses: Staffbase/[email protected]
with:
docker-registry: ${{ inputs.docker-registry }}
docker-username: ${{ secrets.docker-username }}
Expand All @@ -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 }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: ${{ <your-docker-username> }}
Expand All @@ -175,6 +179,8 @@ jobs:
app-id: ${{ <your-app-id> }}
# optional: private key of the GitHub App
private-key: ${{ <your-private-key> }}
# optional: Upwind client secret
upwind-client-secret: ${{ secrets.UPWIND_CLIENT_SECRET }}
```
</details>
Expand Down

0 comments on commit 4cff453

Please sign in to comment.