Skip to content

Commit

Permalink
Merge pull request #93 from Staffbase/MarvinZeising-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinZeising authored Jan 25, 2023
2 parents 34e1cce + 5cda279 commit 4b17084
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/template_gitops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
docker-build-target:
required: false
type: string
docker-file:
required: false
type: string
default: './Dockerfile'
docker-image:
required: false
type: string
Expand Down Expand Up @@ -60,6 +64,7 @@ jobs:
GOPROXY=${{ secrets.goproxy }}
GONOSUMDB=${{ secrets.gonosumdb }}
docker-build-target: ${{ inputs.docker-build-target }}
docker-file: ${{ inputs.docker-file }}
docker-image: ${{ inputs.docker-image }}
gitops-token: ${{ secrets.gitops-token }}
gitops-dev: ${{ inputs.gitops-dev }}
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ on: [ push ]

jobs:
gitops:
uses: Staffbase/gha-workflows/.github/workflows/template_gitops.yml@v1.10.0
uses: Staffbase/gha-workflows/.github/workflows/template_gitops.yml@v1.11.0
with:
# optional: list of build-time variables
docker-build-args: |
"any important args"
# optional: set the target stage to build
docker-build-target: "any target"
# optional: path to the Dockerfile, default: ./Dockerfile
docker-file: <path-to-Dockerfile>
# optional: name of the docker image, default: private/<repository_name>
docker-image: <your-image>
# optional: files which should be updated for dev
Expand Down

0 comments on commit 4b17084

Please sign in to comment.