Try manually running uploads
This commit is contained in:
+2
-12
@@ -11,10 +11,6 @@ stages:
|
||||
- sources/build.pkr.hcl
|
||||
paths:
|
||||
- ./packer_config/
|
||||
- key: isofiles
|
||||
paths:
|
||||
- ./cache/*.iso
|
||||
policy: pull
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
variables:
|
||||
@@ -46,6 +42,8 @@ stages:
|
||||
before_script:
|
||||
- packer init sources
|
||||
- echo $COMMAND
|
||||
- mc alias add storage "localhost:9000" root "$MINIO_SECRET"
|
||||
- mc get storage/isos
|
||||
script:
|
||||
- ls -l cache/
|
||||
- echo $COMMAND > build.sh
|
||||
@@ -68,10 +66,6 @@ virtualbox-iso.amd64:
|
||||
tag: vbox
|
||||
parallel:
|
||||
matrix: []
|
||||
after_script: |-
|
||||
if [ "$CI_JOB_STATUS" == "success" ]; then
|
||||
xonsh test.xsh
|
||||
fi
|
||||
|
||||
hyperv-iso.amd64:
|
||||
extends: .build
|
||||
@@ -85,10 +79,6 @@ hyperv-iso.amd64:
|
||||
- echo $env:COMMAND > build.ps1
|
||||
- echo 'if (-not $?) { throw "Error in build"}' >> build.ps1
|
||||
- pwsh .\build.ps1
|
||||
after_script: |-
|
||||
if ( "$CI_JOB_STATUS" -eq "success" ) {
|
||||
xonsh test.xsh
|
||||
}
|
||||
|
||||
"Create release":
|
||||
stage: release
|
||||
|
||||
+5
-4
@@ -69,13 +69,14 @@ downloads:
|
||||
- sources/build.pkr.hcl
|
||||
paths:
|
||||
- ./packer_config/
|
||||
- key: isofiles
|
||||
paths:
|
||||
- ./cache/*.iso
|
||||
policy: pull-push
|
||||
script:
|
||||
- packer init sources
|
||||
- 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:
|
||||
stage: trigger
|
||||
|
||||
Reference in New Issue
Block a user