Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
04154388
Commit
04154388
authored
3 years ago
by
Alexander Samusev
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[ci] .gitlab-ci.yml chores (#4663)
* rename malus.Dockerfile * ci chores * fix pipeline
parent
b9e6d96c
Branches
gh-readonly-queue/master/pr-7518-c4b41457ccc7a4a81e8b188dfbc14957cdfc002b
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
polkadot/.gitlab-ci.yml
+48
-40
48 additions, 40 deletions
polkadot/.gitlab-ci.yml
polkadot/scripts/dockerfiles/malus_injected.Dockerfile
+0
-0
0 additions, 0 deletions
polkadot/scripts/dockerfiles/malus_injected.Dockerfile
with
48 additions
and
40 deletions
polkadot/.gitlab-ci.yml
+
48
−
40
View file @
04154388
...
...
@@ -5,8 +5,8 @@
# pipelines can be triggered manually in the web
# setting DEPLOY_TAG will only deploy the tagged image
#
# please do not add new jobs without "rules:" and "*-env". There are &
rules-test
for everything,
# &
rules-
test-and-rococo preset. And "kubernetes-env" with "docker-env" to set a runner
# please do not add new jobs without "rules:" and "*-env". There are &
test-refs
for everything,
# &test-and-rococo
-refs
preset. And "kubernetes-env" with "docker-env" to set a runner
# which executes the job.
stages
:
...
...
@@ -73,7 +73,7 @@ default:
-
cargo --version
-
sccache -s
.
rules-test
:
&
rules-test
.
test-refs
:
&
test-refs
# these jobs run always*
rules
:
-
if
:
$CI_COMMIT_REF_NAME == "rococo-v1"
...
...
@@ -82,16 +82,34 @@ default:
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
.
rules-
test-and-rococo
:
&
rules-
test-and-rococo
.test-and-rococo
-refs
:
&test-and-rococo
-refs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
-
if
:
$CI_COMMIT_REF_NAME == "rococo-v1"
.
rules-
test-pr
:
&rules-
test-pr
.test-pr
-refs
:
&
test-pr
-refs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
.zombienet-refs
:
&zombienet-refs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
-
if
:
$CI_COMMIT_REF_NAME == "rococo-v1"
.publish-refs
:
&publish-refs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
#### Vault secrets
.vault-secrets
:
&vault-secrets
...
...
@@ -151,7 +169,7 @@ check-runtime:
stage
:
test
image
:
paritytech/tools:latest
<<
:
*kubernetes-env
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*vault-secrets
variables
:
GITLAB_API
:
"
https://gitlab.parity.io/api/v4"
...
...
@@ -163,7 +181,7 @@ check-runtime:
cargo-fmt
:
stage
:
test
<<
:
*docker-env
<<
:
*
rules-test
<<
:
*
test-refs
script
:
-
cargo +nightly --version
-
cargo +nightly fmt --all -- --check
...
...
@@ -171,7 +189,7 @@ cargo-fmt:
test-deterministic-wasm
:
stage
:
test
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*docker-env
<<
:
*compiler-info
<<
:
*vault-secrets
...
...
@@ -218,7 +236,7 @@ test-build-linux-stable:
check-runtime-benchmarks
:
stage
:
test
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*docker-env
<<
:
*compiler-info
<<
:
*vault-secrets
...
...
@@ -229,7 +247,7 @@ check-runtime-benchmarks:
check-no-default-features
:
stage
:
test
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*docker-env
<<
:
*compiler-info
<<
:
*vault-secrets
...
...
@@ -241,7 +259,7 @@ check-no-default-features:
spellcheck
:
stage
:
test
<<
:
*docker-env
<<
:
*
rules-test
<<
:
*
test-refs
script
:
-
cargo spellcheck --version
# compare with the commit parent to the PR, given it's from a default branch
...
...
@@ -257,7 +275,7 @@ build-adder-collator:
<<
:
*collect-artifacts
<<
:
*docker-env
<<
:
*compiler-info
<<
:
*
rules-
test-and-rococo
<<
:
*test-and-rococo
-refs
script
:
-
time cargo build --profile testnet --verbose -p test-parachain-adder-collator
-
sccache -s
...
...
@@ -274,10 +292,7 @@ build-malus:
<<
:
*collect-artifacts
<<
:
*docker-env
<<
:
*compiler-info
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
<<
:
*test-and-rococo-refs
script
:
-
time cargo build --profile testnet --verbose -p polkadot-test-malus
-
sccache -s
...
...
@@ -294,7 +309,7 @@ build-malus:
.check-dependent-project
:
&check-dependent-project
stage
:
build
<<
:
*docker-env
<<
:
*
rules-
test-pr
<<
:
*test-pr
-refs
<<
:
*vault-secrets
script
:
-
git clone
...
...
@@ -317,7 +332,7 @@ check-dependent-cumulus:
check-transaction-versions
:
stage
:
build
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*docker-env
<<
:
*vault-secrets
image
:
node:15
...
...
@@ -335,7 +350,7 @@ check-transaction-versions:
generate-impl-guide
:
stage
:
build
<<
:
*
rules-test
<<
:
*
test-refs
<<
:
*docker-env
image
:
name
:
michaelfbryan/mdbook-docker-image:v0.4.4
...
...
@@ -346,7 +361,7 @@ generate-impl-guide:
build-rustdoc
:
stage
:
build
<<
:
*docker-env
<<
:
*
rules-test
<<
:
*
test-refs
variables
:
SKIP_WASM_BUILD
:
1
artifacts
:
...
...
@@ -411,6 +426,8 @@ publish-polkadot-image:
rules
:
# Don't run on releases - this is handled by the Github Action here:
# .github/workflows/publish-docker-release.yml
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/
# i.e. v1.0, v2.1rc1
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
...
...
@@ -439,7 +456,7 @@ publish-adder-collator-image:
# service image for Simnet
stage
:
build
<<
:
*build-push-image
<<
:
*
rules-test-and-rococo
<<
:
*
zombienet-refs
variables
:
<<
:
*image-variables
# scripts/dockerfiles/collator_injected.Dockerfile
...
...
@@ -462,15 +479,12 @@ publish-malus-image:
# service image for Simnet
stage
:
build
<<
:
*build-push-image
<<
:
*zombienet-refs
variables
:
<<
:
*image-variables
# scripts/dockerfiles/malus.Dockerfile
DOCKERFILE
:
dockerfiles/malus.Dockerfile
# scripts/dockerfiles/malus
_injected
.Dockerfile
DOCKERFILE
:
dockerfiles/malus
_injected
.Dockerfile
IMAGE_NAME
:
docker.io/paritypr/malus
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
needs
:
-
job
:
build-malus
artifacts
:
true
...
...
@@ -523,6 +537,8 @@ publish-s3-release: &publish-s3
GIT_STRATEGY
:
none
PREFIX
:
"
builds/polkadot/${ARCH}-${DOCKER_OS}"
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
# publishing binaries nightly
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
before_script
:
...
...
@@ -558,6 +574,8 @@ publish-rustdoc:
variables
:
GIT_DEPTH
:
100
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "pipeline"
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME == "master"
# `needs:` can be removed after CI image gets nonroot. In this case `needs:` stops other
...
...
@@ -601,9 +619,7 @@ publish-rustdoc:
deploy-parity-testnet
:
stage
:
deploy
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
<<
:
*publish-refs
variables
:
POLKADOT_CI_COMMIT_NAME
:
"
${CI_COMMIT_REF_NAME}"
POLKADOT_CI_COMMIT_REF
:
"
${CI_COMMIT_SHORT_SHA}"
...
...
@@ -614,11 +630,7 @@ zombienet-tests-parachains-smoke-test:
stage
:
deploy
image
:
"
${ZOMBIENET_IMAGE}"
<<
:
*kubernetes-env
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
-
if
:
$CI_COMMIT_REF_NAME == "rococo-v1"
<<
:
*zombienet-refs
needs
:
-
job
:
publish-polkadot-image
-
job
:
publish-malus-image
...
...
@@ -651,11 +663,7 @@ zombienet-tests-malus-dispute-valid:
stage
:
deploy
image
:
"
${ZOMBIENET_IMAGE}"
<<
:
*kubernetes-env
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_COMMIT_REF_NAME == "master"
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
-
if
:
$CI_COMMIT_REF_NAME == "rococo-v1"
<<
:
*zombienet-refs
needs
:
-
job
:
publish-polkadot-image
-
job
:
publish-malus-image
...
...
This diff is collapsed.
Click to expand it.
polkadot/scripts/dockerfiles/malus.Dockerfile
→
polkadot/scripts/dockerfiles/malus
_injected
.Dockerfile
+
0
−
0
View file @
04154388
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment