mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
gitlab: use new(ish) cirrus-vars command for creating config
Rather than a giant sed command with a hardcoded list of env var name, we can now use the new(ish) cirrus-vars command that libvirt has added to the 'cirrus-run' container. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241204194807.1472261-3-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
7976879c4b
commit
b56e07ac1e
2 changed files with 4 additions and 21 deletions
|
@ -22,27 +22,10 @@
|
||||||
# actually starts the task
|
# actually starts the task
|
||||||
timeout: 80m
|
timeout: 80m
|
||||||
script:
|
script:
|
||||||
|
- set -o allexport
|
||||||
- source .gitlab-ci.d/cirrus/$NAME.vars
|
- source .gitlab-ci.d/cirrus/$NAME.vars
|
||||||
- sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
|
- set +o allexport
|
||||||
-e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
|
- cirrus-vars <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
|
||||||
-e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
|
|
||||||
-e "s|[@]CIRRUS_VM_INSTANCE_TYPE@|$CIRRUS_VM_INSTANCE_TYPE|g"
|
|
||||||
-e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g"
|
|
||||||
-e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g"
|
|
||||||
-e "s|[@]CIRRUS_VM_CPUS@|$CIRRUS_VM_CPUS|g"
|
|
||||||
-e "s|[@]CIRRUS_VM_RAM@|$CIRRUS_VM_RAM|g"
|
|
||||||
-e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g"
|
|
||||||
-e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g"
|
|
||||||
-e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g"
|
|
||||||
-e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g"
|
|
||||||
-e "s|[@]PKGS@|$PKGS|g"
|
|
||||||
-e "s|[@]MAKE@|$MAKE|g"
|
|
||||||
-e "s|[@]PYTHON@|$PYTHON|g"
|
|
||||||
-e "s|[@]PIP3@|$PIP3|g"
|
|
||||||
-e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
|
|
||||||
-e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
|
|
||||||
-e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
|
|
||||||
<.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
|
|
||||||
- cat .gitlab-ci.d/cirrus/$NAME.yml
|
- cat .gitlab-ci.d/cirrus/$NAME.yml
|
||||||
- cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
|
- cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
|
||||||
variables:
|
variables:
|
||||||
|
|
|
@ -8,7 +8,7 @@ env:
|
||||||
CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@"
|
CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@"
|
||||||
CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@"
|
CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@"
|
||||||
CI_COMMIT_SHA: "@CI_COMMIT_SHA@"
|
CI_COMMIT_SHA: "@CI_COMMIT_SHA@"
|
||||||
PATH: "@PATH@"
|
PATH: "@PATH_EXTRA@:$PATH"
|
||||||
PKG_CONFIG_PATH: "@PKG_CONFIG_PATH@"
|
PKG_CONFIG_PATH: "@PKG_CONFIG_PATH@"
|
||||||
PYTHON: "@PYTHON@"
|
PYTHON: "@PYTHON@"
|
||||||
MAKE: "@MAKE@"
|
MAKE: "@MAKE@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue