Skip to content

Commit

Permalink
Add option to use go internal modules in github actions (#12335)
Browse files Browse the repository at this point in the history
* Add option to use go internal moduels in github actions

* Update naming

* Fix

* Apply suggestions from code review

Co-authored-by: Wojciech Sołtys <[email protected]>

---------

Co-authored-by: Wojciech Sołtys <[email protected]>
  • Loading branch information
KacperMalachowski and Sawthis authored Nov 14, 2024
1 parent 0d056ab commit 13f6332
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/image-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ inputs:
description: Prevent actual triggering the image builder
required: false
default: false
use-go-internal-sap-modules:
description: Setup access to Go internal SAP modules in build environment
required: false
default: false

outputs:
adoResult:
Expand Down Expand Up @@ -81,4 +85,4 @@ runs:
- uses: docker://europe-docker.pkg.dev/kyma-project/prod/image-builder:v20241112-fd0d9381
id: build
with:
args: --name=${{ inputs.image-name }} --context=${{ inputs.context }} --dockerfile=${{ inputs.dockerfile }} --azure-access-token=${{ inputs.ado-token }} --oidc-token=${{ inputs.oidc-token }} ${{ steps.prepare-build-args.outputs.build-args }} ${{ steps.prepare-tags.outputs.tags }} --export-tags=${{ inputs.export-tags }} --config=${{ inputs.config }} --env-file=${{ inputs.env-file }} --build-in-ado=true
args: --name=${{ inputs.image-name }} --context=${{ inputs.context }} --dockerfile=${{ inputs.dockerfile }} --azure-access-token=${{ inputs.ado-token }} --oidc-token=${{ inputs.oidc-token }} ${{ steps.prepare-build-args.outputs.build-args }} ${{ steps.prepare-tags.outputs.tags }} --export-tags=${{ inputs.export-tags }} --config=${{ inputs.config }} --env-file=${{ inputs.env-file }} --build-in-ado=true --use-go-internal-modules=${{ inputs.use-go-internal-sap-modules }}
8 changes: 7 additions & 1 deletion .github/workflows/image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
required: false
type: string
default: ""
use-go-internal-sap-modules:
description: Setup access to Go internal SAP modules in build environment
required: false
type: boolean
default: false
outputs:
images:
description: JSON list of images built by image-builder
Expand Down Expand Up @@ -108,4 +113,5 @@ jobs:
image-name: ${{ inputs.name }}
dockerfile: ${{ inputs.dockerfile }}
env-file: ${{ inputs.env-file }}
config: "./configs/image-builder-client-config.yaml"
config: "./configs/image-builder-client-config.yaml"
use-go-internal-sap-modules: ${{ inputs.use-go-internal-sap-modules }}

0 comments on commit 13f6332

Please sign in to comment.