Try manually running uploads
This commit is contained in:
+2
-12
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user