Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update shared CI workflows #343

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/__build-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ on:
required: false
type: string
default: Dockerfile
additional-build-contexts:
description: >
Additional build context to include in the build (format name=path),
it's used for EE build to additionaly include path to OSS repo.
required: false
type: string
target:
description: The target to be built.
required: false
Expand Down Expand Up @@ -140,9 +146,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 +213,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 +275,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
Loading