Commit 2e0a6caf authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

use double-extends rather than YAML-anchors for release/snapshot

parent b40f248f
......@@ -50,23 +50,20 @@ variables:
- *script_make
- *script_make_check
- *script_make_install
.build:snapshot: &snapshot
except:
- tags
artifacts: &snapshot_artifacts
artifacts:
name: ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${CI_JOB_NAME%_*}
paths:
- "${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}"
.snapshot:
except:
- tags
artifacts:
expire_in: 1 week
.build:release: &release
.release:
only:
- tags
artifacts: &release_artifacts
name: ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${CI_JOB_NAME%_*}
paths:
- "${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}"
.build:linux: &build_linux
extends: .build:script
......@@ -155,54 +152,22 @@ variables:
### release jobs
.Linux:
<<: *build_linux
<<: *release
.Linuxi386:
allow_failure: true
<<: *build_linux_i386
<<: *release
.LinuxARMhf:
allow_failure: true
<<: *build_linux_armhf
<<: *release
.LinuxARM64:
allow_failure: true
<<: *build_linux_arm64
<<: *release
.Darwin:
<<: *build_macos
<<: *release
.w32:
<<: *build_w32
<<: *release
.w64:
<<: *build_w64
<<: *release
### snapshot jobs
.Linux_snapshot:
<<: *build_linux
<<: *snapshot
.Linuxi386_snapshot:
allow_failure: true
<<: *build_linux_i386
<<: *snapshot
.LinuxARMhf_snapshot:
allow_failure: true
<<: *build_linux_armhf
<<: *snapshot
.LinuxARM64_snapshot:
allow_failure: true
<<: *build_linux_arm64
<<: *snapshot
.Darwin_snapshot:
<<: *build_macos
<<: *snapshot
.w32_snapshot:
<<: *build_w32
<<: *snapshot
.w64_snapshot:
<<: *build_w64
<<: *snapshot
#######################################################################
### create deken packages and (optionally) upload them;
......
......@@ -21,41 +21,65 @@
### release jobs
Linux:
extends: .Linux
extends:
- .Linux
- .release
Linuxi386:
extends: .Linuxi386
allow_failure: true
extends:
- .Linuxi386
- .release
LinuxARMhf:
extends: .LinuxARMhf
allow_failure: true
extends:
- .LinuxARMhf
- .release
LinuxARM64:
extends: .LinuxARM64
allow_failure: true
extends:
- .LinuxARM64
- .release
Darwin:
extends: .Darwin
extends:
- .Darwin
- .release
w32:
extends: .w32
extends:
- .w32
- .release
w64:
extends: .w64
extends:
- .w64
- .release
### snapshot jobs
Linux_snapshot:
extends: .Linux_snapshot
extends:
- .Linux
- .snapshot
Linuxi386_snapshot:
extends: .Linuxi386_snapshot
allow_failure: true
extends:
- .Linuxi386
- .snapshot
LinuxARMhf_snapshot:
extends: .LinuxARMhf_snapshot
allow_failure: true
extends:
- .LinuxARMhf
- .snapshot
LinuxARM64_snapshot:
extends: .LinuxARM64_snapshot
allow_failure: true
extends:
- .LinuxARM64
- .snapshot
Darwin_snapshot:
extends: .Darwin_snapshot
extends:
- .Darwin
- .snapshot
w32_snapshot:
extends: .w32_snapshot
extends:
- .w32
- .snapshot
w64_snapshot:
extends: .w64_snapshot
extends:
- .w64
- .snapshot
#######################################################################
### create deken packages and (optionally) upload them;
......@@ -63,13 +87,11 @@ w64_snapshot:
### set DEKEN_USERNAME/DEKEN_PASSWORD in the CI-project settings.
### (https://git.iem.at/help/ci/variables/README#variables)
deken:
extends: .deken
only:
- tags
extends:
- .deken
- .release
deken_snapshot:
extends: .deken
except:
- tags
artifacts:
expire_in: 1 week
extends:
- .deken
- .snapshot
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment