manual publish jobs for releases, no changes for nightlies (#10977)

This commit is contained in:
TriplEight 2019-08-16 12:59:36 +02:00 committed by GitHub
parent 6a9de9b11e
commit bd1a578f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,6 @@ variables:
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache" SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_TARGET: x86_64-unknown-linux-gnu CARGO_TARGET: x86_64-unknown-linux-gnu
.no_git: &no_git # disable git strategy
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries") .releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
only: &releaseable_branches only: &releaseable_branches
@ -212,11 +208,10 @@ build-windows:
publish-docker: publish-docker:
stage: publish stage: publish
<<: *no_git
only: *releaseable_branches only: *releaseable_branches
except: except:
variables: - nightly
- $SCHEDULE_TAG == "nightly" when: manual
dependencies: dependencies:
- build-linux - build-linux
environment: environment:
@ -226,23 +221,24 @@ publish-docker:
services: services:
- docker:dind - docker:dind
variables: variables:
GIT_STRATEGY: none
DOCKER_HOST: tcp://localhost:2375 DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
GIT_STRATEGY: none GIT_STRATEGY: none
# DOCKERFILE: tools/Dockerfile # DOCKERFILE: tools/Dockerfile
# CONTAINER_IMAGE: parity/parity # CONTAINER_IMAGE: parity/parity
script: script:
# we stopped pushing nightlies to dockerhub, will push to own registry prb.
- ./tools/publish-docker.sh - ./tools/publish-docker.sh
tags: tags:
- kubernetes-parity-build - kubernetes-parity-build
publish-snap: &publish-snap publish-snap-nightly: &publish-snap
stage: publish stage: publish
<<: *no_git only:
only: *releaseable_branches - nightly
image: snapcore/snapcraft image: snapcore/snapcraft
variables: variables:
GIT_STRATEGY: none
BUILD_ARCH: amd64 BUILD_ARCH: amd64
cache: {} cache: {}
dependencies: dependencies:
@ -252,7 +248,12 @@ publish-snap: &publish-snap
script: script:
- ./tools/publish-snap.sh - ./tools/publish-snap.sh
publish-snap-i386: publish-snap-manually:
<<: *publish-snap
only: *releaseable_branches
when: manual
publish-snap-i386-nightly: &publish-snap-i386
<<: *publish-snap <<: *publish-snap
variables: variables:
BUILD_ARCH: i386 BUILD_ARCH: i386
@ -260,7 +261,12 @@ publish-snap-i386:
dependencies: dependencies:
- build-linux-i386 - build-linux-i386
publish-snap-arm64: publish-snap-i386-manually:
<<: *publish-snap-i386
only: *releaseable_branches
when: manual
publish-snap-arm64-nightly: &publish-snap-arm64
<<: *publish-snap <<: *publish-snap
variables: variables:
BUILD_ARCH: arm64 BUILD_ARCH: arm64
@ -268,7 +274,12 @@ publish-snap-arm64:
dependencies: dependencies:
- build-linux-arm64 - build-linux-arm64
publish-snap-armhf: publish-snap-arm64-manually:
<<: *publish-snap-arm64
only: *releaseable_branches
when: manual
publish-snap-armhf-nightly: &publish-snap-armhf
<<: *publish-snap <<: *publish-snap
variables: variables:
BUILD_ARCH: armhf BUILD_ARCH: armhf
@ -276,11 +287,18 @@ publish-snap-armhf:
dependencies: dependencies:
- build-linux-armhf - build-linux-armhf
publish-onchain: publish-snap-armhf-manually:
stage: publish <<: *publish-snap-armhf
<<: *no_git
only: *releaseable_branches only: *releaseable_branches
when: manual
publish-onchain-nightly: &publish-onchain
stage: publish
only:
- nightly
cache: {} cache: {}
variables:
GIT_STRATEGY: none
dependencies: dependencies:
- build-linux - build-linux
- build-darwin - build-darwin
@ -290,11 +308,18 @@ publish-onchain:
tags: tags:
- linux-docker - linux-docker
publish-awss3-release: publish-onchain-manually:
<<: *publish-onchain
only: *releaseable_branches
when: manual
publish-release-awss3-nightly: &publish-release-awss3
image: parity/awscli:latest image: parity/awscli:latest
stage: publish stage: publish
only: *releaseable_branches only:
<<: *no_git - nightly
variables:
GIT_STRATEGY: none
cache: {} cache: {}
dependencies: dependencies:
- build-linux - build-linux
@ -316,6 +341,11 @@ publish-awss3-release:
tags: tags:
- linux-docker - linux-docker
publish-release-awss3-manually:
<<: *publish-release-awss3
only: *releaseable_branches
when: manual
publish-docs: publish-docs:
stage: publish stage: publish
image: parity/parity-ci-docs:latest image: parity/parity-ci-docs:latest
@ -323,6 +353,7 @@ publish-docs:
- tags - tags
except: except:
- nightly - nightly
when: manual
cache: {} cache: {}
dependencies: [] dependencies: []
script: script:
@ -333,11 +364,12 @@ publish-docs:
publish-av-whitelist: publish-av-whitelist:
stage: publish stage: publish
<<: *no_git variables:
GIT_STRATEGY: none
only: *releaseable_branches only: *releaseable_branches
except: except:
variables: - nightly
- $SCHEDULE_TAG == "nightly" when: manual
cache: {} cache: {}
dependencies: dependencies:
- build-windows - build-windows