Try manually running uploads

This commit is contained in:
Greg Hellings
2024-06-21 10:48:58 -05:00
parent d16e79b850
commit 13f2dc7943
3 changed files with 8 additions and 17 deletions
+2 -12
View File
@@ -11,10 +11,6 @@ stages:
- sources/build.pkr.hcl - sources/build.pkr.hcl
paths: paths:
- ./packer_config/ - ./packer_config/
- key: isofiles
paths:
- ./cache/*.iso
policy: pull
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
variables: variables:
@@ -46,6 +42,8 @@ stages:
before_script: before_script:
- packer init sources - packer init sources
- echo $COMMAND - echo $COMMAND
- mc alias add storage "localhost:9000" root "$MINIO_SECRET"
- mc get storage/isos
script: script:
- ls -l cache/ - ls -l cache/
- echo $COMMAND > build.sh - echo $COMMAND > build.sh
@@ -68,10 +66,6 @@ virtualbox-iso.amd64:
tag: vbox tag: vbox
parallel: parallel:
matrix: [] matrix: []
after_script: |-
if [ "$CI_JOB_STATUS" == "success" ]; then
xonsh test.xsh
fi
hyperv-iso.amd64: hyperv-iso.amd64:
extends: .build extends: .build
@@ -85,10 +79,6 @@ hyperv-iso.amd64:
- echo $env:COMMAND > build.ps1 - echo $env:COMMAND > build.ps1
- echo 'if (-not $?) { throw "Error in build"}' >> build.ps1 - echo 'if (-not $?) { throw "Error in build"}' >> build.ps1
- pwsh .\build.ps1 - pwsh .\build.ps1
after_script: |-
if ( "$CI_JOB_STATUS" -eq "success" ) {
xonsh test.xsh
}
"Create release": "Create release":
stage: release stage: release
+5 -4
View File
@@ -69,13 +69,14 @@ downloads:
- sources/build.pkr.hcl - sources/build.pkr.hcl
paths: paths:
- ./packer_config/ - ./packer_config/
- key: isofiles
paths:
- ./cache/*.iso
policy: pull-push
script: script:
- packer init sources - packer init sources
- bash cache.sh - bash cache.sh
- mc alias add storage "localhost:9000" root "$MINIO_SECRET"
- |
for f in cache/*; do
mc put "$f" "storage/isos/$(basename "$f")"
end
trigger: trigger:
stage: trigger stage: trigger
+1 -1
View File
@@ -23,4 +23,4 @@ echo "Downloading ${files[*]}"
curl --parallel -L "${files[@]}" curl --parallel -L "${files[@]}"
popd popd
ls -l cache/ ls -lh cache/