Skip to content
Snippets Groups Projects
Commit a1306663 authored by Graeme Gillies's avatar Graeme Gillies
Browse files

feat: Add `GORELEASER_DOCKER_EXTRA_ARGS`

This will allow us to pass environment variables and other things
to the goreleaser execution via DIND.
parent b1b772ee
No related branches found
No related tags found
No related merge requests found
Pipeline #15420569 passed
Loading
Loading
@@ -84,6 +84,8 @@ include:
 
## Options
 
Additional arguments (such as passing environment variables to be consumed by goreleaser) can be set using the `GORELEASER_DOCKER_EXTRA_ARGS` variable.
Additional command line options for Goreleaser can be set using the `GORELEASER_EXTRA_ARGS` argument. These will be appended to the arguments for `goreleaser release`.
 
## Fips Mode
Loading
Loading
Loading
Loading
@@ -49,6 +49,7 @@ goreleaser:
-e DOCKER_USERNAME -e DOCKER_PASSWORD -e DOCKER_REGISTRY \
-e GITLAB_TOKEN -e CI_REGISTRY_IMAGE \
-e CI_SERVER_URL \
${GORELEASER_DOCKER_EXTRA_ARGS:-} \
goreleaser/goreleaser:v${GL_ASDF_GORELEASER_VERSION} release --rm-dist ${GORELEASER_EXTRA_ARGS:-}
after_script: |
cat <<-EOD
Loading
Loading
@@ -91,7 +92,8 @@ goreleaser-fips:
-e DOCKER_USERNAME -e DOCKER_PASSWORD -e DOCKER_REGISTRY \
-e GITLAB_TOKEN -e CI_REGISTRY_IMAGE \
-e CI_SERVER_URL \
-e GL_ASDF_GORELEASER_VERSION
-e GL_ASDF_GORELEASER_VERSION \
${GORELEASER_DOCKER_EXTRA_ARGS:-} \
registry.access.redhat.com/ubi8/ubi:${GL_COMMON_CI_TASKS_DEFAULT_UBI_IMAGE_VERSION} scripts/run-goreleaser-fips.sh release --rm-dist ${GORELEASER_EXTRA_ARGS:-}
after_script: |
cat <<-EOD
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment