mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-25 15:29:32 -05:00
Modified path to CICD scripts in CI config
I thought CICD's working directory was in the project root but the release failed to find the scripts. I've changed the script executions to absolute paths. There's a directory is named for the runner's ID, is different on each machine, and changes if the runner is replaced. There's a variable that should overcome this, CI_RUNNER_ID, which I've used in the asbolute paths. Fingers crossed, let's try it again.
This commit is contained in:
parent
bdb7ad32f2
commit
2a73946246
@ -71,9 +71,9 @@ create_build_machines:
|
|||||||
tags:
|
tags:
|
||||||
- build-orchestration
|
- build-orchestration
|
||||||
script:
|
script:
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh create amd64-deb
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh create amd64-deb
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh create arm64-deb
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh create arm64-deb
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh create amd64-rpm
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh create amd64-rpm
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ package_amd64_deb:
|
|||||||
script:
|
script:
|
||||||
- earthly bootstrap
|
- earthly bootstrap
|
||||||
- earthly +package-linux-amd64-deb
|
- earthly +package-linux-amd64-deb
|
||||||
- scripts/cicd/build-machine/scp-to-orchestrator.sh
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ package_arm64_deb:
|
|||||||
script:
|
script:
|
||||||
- earthly bootstrap
|
- earthly bootstrap
|
||||||
- earthly +package-linux-arm64-deb
|
- earthly +package-linux-arm64-deb
|
||||||
- scripts/cicd/build-machine/scp-to-orchestrator.sh
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ package_amd64_rpm:
|
|||||||
script:
|
script:
|
||||||
- earthly bootstrap
|
- earthly bootstrap
|
||||||
- earthly +package-linux-amd64-rpm
|
- earthly +package-linux-amd64-rpm
|
||||||
- - scripts/cicd/build-machine/scp-to-orchestrator.sh
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -121,6 +121,7 @@ publish_crates:
|
|||||||
tags:
|
tags:
|
||||||
- build-amd64-deb
|
- build-amd64-deb
|
||||||
script:
|
script:
|
||||||
|
- cd /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/
|
||||||
- vlt login
|
- vlt login
|
||||||
- vlt run --command="cargo publish -p veilid-tools --dry-run"
|
- vlt run --command="cargo publish -p veilid-tools --dry-run"
|
||||||
- vlt run --command="cargo publish -p veilid-tools"
|
- vlt run --command="cargo publish -p veilid-tools"
|
||||||
@ -135,7 +136,7 @@ publish_python:
|
|||||||
- build-amd64-deb
|
- build-amd64-deb
|
||||||
script:
|
script:
|
||||||
- vlt login
|
- vlt login
|
||||||
- cd veilid-python && /home/gitlab-runner/.local/bin/poetry build
|
- cd /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/veilid-python && /home/gitlab-runner/.local/bin/poetry build
|
||||||
- vlt run --command="/home/gitlab-runner/.local/bin/poetry publish"
|
- vlt run --command="/home/gitlab-runner/.local/bin/poetry publish"
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
@ -149,8 +150,8 @@ build_repositories:
|
|||||||
variables:
|
variables:
|
||||||
SECURE_FILES_DOWNLOAD_PATH: './'
|
SECURE_FILES_DOWNLOAD_PATH: './'
|
||||||
script:
|
script:
|
||||||
- cp scripts/cicd/build-orchestration/generate-release.sh ~
|
- cp /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/generate-release.sh ~
|
||||||
- scripts/cicd/build-orchestration/distribute-packages.sh
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/distribute-packages.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -161,7 +162,7 @@ deploy_repos:
|
|||||||
tags:
|
tags:
|
||||||
- repo-server
|
- repo-server
|
||||||
script:
|
script:
|
||||||
- scripts/cicd/repo-server/deploy-repo.sh
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/repo-server/deploy-repo.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
|
||||||
@ -172,8 +173,8 @@ delete_build_machines:
|
|||||||
tags:
|
tags:
|
||||||
- build-orchestration
|
- build-orchestration
|
||||||
script:
|
script:
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh delete amd64-deb
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh delete amd64-deb
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh delete arm64-deb
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh delete arm64-deb
|
||||||
- scripts/cicd/build-orchestration/build-machine-ctl.sh delete amd64-rpm
|
- /home/gitlab-runner/builds/$CI_RUNNER_ID/0/veilid/veilid/scripts/cicd/build-orchestration/build-machine-ctl.sh delete amd64-rpm
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
- if: '$CI_COMMIT_TAG =~ /v\d.+/'
|
||||||
|
Loading…
Reference in New Issue
Block a user