mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 02:37:58 +00:00
Add publish docker staking-miner (#5710)
* [DO NOT MERGE] Add publish docker staking-miner * debug docker publish * remove debug * small naming fix * fix comment
This commit is contained in:
committed by
GitHub
parent
d578d176cb
commit
f0b932139e
+45
-2
@@ -106,13 +106,23 @@ default:
|
||||
- if: $CI_COMMIT_REF_NAME == "master"
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
|
||||
|
||||
.publish-refs: &publish-refs
|
||||
.deploy-testnet-refs: &deploy-testnet-refs
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "pipeline"
|
||||
when: never
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
- if: $CI_COMMIT_REF_NAME == "master"
|
||||
|
||||
.publish-refs: &publish-refs
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "pipeline"
|
||||
when: never
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
- if: $CI_PIPELINE_SOURCE == "web" &&
|
||||
$CI_COMMIT_REF_NAME == "master"
|
||||
- if: $CI_COMMIT_REF_NAME == "master"
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
|
||||
|
||||
.build-push-image: &build-push-image
|
||||
<<: *kubernetes-env
|
||||
image: quay.io/buildah/stable
|
||||
@@ -266,6 +276,22 @@ build-malus:
|
||||
- echo "polkadot-test-malus = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
|
||||
- cp -r ./scripts/* ./artifacts
|
||||
|
||||
build-staking-miner:
|
||||
stage: stage1
|
||||
<<: *collect-artifacts
|
||||
<<: *docker-env
|
||||
<<: *compiler-info
|
||||
<<: *common-refs
|
||||
script:
|
||||
- time cargo build --locked --release --package staking-miner
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/release/staking-miner ./artifacts/.
|
||||
- echo -n "${CI_COMMIT_REF_NAME}" > ./artifacts/VERSION
|
||||
- echo -n "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" > ./artifacts/EXTRATAG
|
||||
- echo "staking-miner = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
|
||||
- cp -r ./scripts/* ./artifacts
|
||||
|
||||
#### stage: stage2
|
||||
|
||||
.check-dependent-project: &check-dependent-project
|
||||
@@ -424,6 +450,23 @@ publish-malus-image:
|
||||
# this artifact is used in zombienet-tests job
|
||||
dotenv: ./artifacts/malus.env
|
||||
|
||||
publish-staking-miner-image:
|
||||
stage: stage2
|
||||
<<: *build-push-image
|
||||
<<: *publish-refs
|
||||
variables:
|
||||
<<: *image-variables
|
||||
# scripts/ci/dockerfiles/staking-miner/staking-miner_injected.Dockerfile
|
||||
DOCKERFILE: ci/dockerfiles/staking-miner/staking-miner_injected.Dockerfile
|
||||
IMAGE_NAME: docker.io/paritytech/staking-miner
|
||||
GIT_STRATEGY: none
|
||||
DOCKER_USER: ${Docker_Hub_User_Parity}
|
||||
DOCKER_PASS: ${Docker_Hub_Pass_Parity}
|
||||
needs:
|
||||
- job: build-staking-miner
|
||||
artifacts: true
|
||||
|
||||
|
||||
publish-s3-release: &publish-s3
|
||||
stage: stage3
|
||||
needs:
|
||||
@@ -586,7 +629,7 @@ deploy-parity-testnet:
|
||||
needs:
|
||||
- job: test-deterministic-wasm
|
||||
artifacts: false
|
||||
<<: *publish-refs
|
||||
<<: *deploy-testnet-refs
|
||||
variables:
|
||||
POLKADOT_CI_COMMIT_NAME: "${CI_COMMIT_REF_NAME}"
|
||||
POLKADOT_CI_COMMIT_REF: "${CI_COMMIT_SHORT_SHA}"
|
||||
|
||||
Reference in New Issue
Block a user