Skip to content

Commit

Permalink
chore: update shared CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Jun 18, 2024
1 parent 333a6da commit c749000
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/__build-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ on:
required: false
type: string
default: Dockerfile
additional-build-contexts:
description: Additional build context to include in the build (format name=path).
required: false
type: string
target:
description: The target to be built.
required: false
Expand Down Expand Up @@ -140,9 +144,6 @@ jobs:
- name: Configure Git for private repositories (this is needed by repositories that include this workflow and have other private dependencies)
run: git config --global url."https://${{ secrets.gh-pat }}@github.com".insteadOf "https://github.com"

- name: Checkout KGO submodule
run: git submodule update --init

- name: Cache Docker layers
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -210,6 +211,7 @@ jobs:
uses: docker/[email protected]
with:
context: .
build-contexts: ${{ inputs.additional-build-contexts }}
push: ${{ inputs.push }}
# Use load when push is set to false to allow subsequent steps to have
# access to this image.
Expand Down Expand Up @@ -271,9 +273,6 @@ jobs:
- name: Configure Git for private repositories (this is needed by repositories that include this workflow and have other private dependencies)
run: git config --global url."https://${{ secrets.gh-pat }}@github.com".insteadOf "https://github.com"

- name: Checkout KGO submodule
run: git submodule update --init

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/__release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ jobs:
- name: Configure Git for private repositories (this is needed by repositories that include this workflow and have other private dependencies)
run: git config --global url."https://${{ secrets.gh-pat }}@github.com".insteadOf "https://github.com"

- name: Checkout KGO submodule
run: git submodule update --init

- name: Setup golang
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -160,9 +157,6 @@ jobs:
- name: Configure Git for private repositories (this is needed by repositories that include this workflow and have other private dependencies)
run: git config --global url."https://${{ secrets.gh-pat }}@github.com".insteadOf "https://github.com"

- name: Checkout KGO submodule
run: git submodule update --init

- name: Setup golang
uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit c749000

Please sign in to comment.