Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
polkadot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
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
Martin Pugh
polkadot
Commits
95fce90c
Unverified
Commit
95fce90c
authored
4 years ago
by
Denis_P
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: workaraound for variable not passed to after_script (#2256)
parent
c385b486
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-25
25 additions, 25 deletions
.gitlab-ci.yml
with
25 additions
and
25 deletions
.gitlab-ci.yml
+
25
−
25
View file @
95fce90c
...
...
@@ -180,28 +180,28 @@ check-transaction-versions:
script
:
-
scripts/gitlab/check_extrinsics_ordering.sh
.build-linux
:
&build-linux
<<
:
*collect-artifacts
<<
:
*docker-env
<<
:
*compiler-info
after_script
:
-
mv ./target/release/polkadot ./artifacts/.
-
sha256sum ./artifacts/polkadot | tee ./artifacts/polkadot.sha256
-
if [ "${CI_COMMIT_TAG}" ]; then
EXTRATAG="latest";
else
EXTRATAG="$(./artifacts/polkadot --version |
sed -n -r 's/^polkadot ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p')";
EXTRATAG="${CI_COMMIT_REF_NAME}-${EXTRATAG}-$(cut -c 1-8 ./artifacts/polkadot.sha256)";
fi
-
echo "Polkadot version = ${VERSION} (EXTRATAG ${EXTRATAG})"
-
echo -n ${VERSION} > ./artifacts/VERSION
-
echo -n ${EXTRATAG} > ./artifacts/EXTRATAG
-
cp -r scripts/docker/* ./artifacts
.pack-artifacts
:
&pack-artifacts
-
mkdir -p ./artifacts
-
VERSION="${CI_COMMIT_REF_NAME}"
# will be tag or branch name
-
mv ./target/release/polkadot ./artifacts/.
-
sha256sum ./artifacts/polkadot | tee ./artifacts/polkadot.sha256
-
if [ "${CI_COMMIT_TAG}" ]; then
EXTRATAG="latest";
else
EXTRATAG="$(./artifacts/polkadot --version |
sed -n -r 's/^polkadot ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p')";
EXTRATAG="${CI_COMMIT_REF_NAME}-${EXTRATAG}-$(cut -c 1-8 ./artifacts/polkadot.sha256)";
fi
-
echo "Polkadot version = ${VERSION} (EXTRATAG ${EXTRATAG})"
-
echo -n ${VERSION} > ./artifacts/VERSION
-
echo -n ${EXTRATAG} > ./artifacts/EXTRATAG
-
cp -r scripts/docker/* ./artifacts
build-linux-release
:
stage
:
build
<<
:
*build-linux
<<
:
*collect-artifacts
<<
:
*docker-env
<<
:
*compiler-info
rules
:
# .rules-test with manual on PRs
-
if
:
$PIPELINE == "rococo"
...
...
@@ -211,21 +211,21 @@ build-linux-release:
allow_failure
:
true
-
when
:
always
script
:
-
mkdir -p ./artifacts
-
VERSION="${CI_COMMIT_REF_NAME}"
# will be tag or branch name
-
time cargo build --release --verbose
-
sccache -s
-
*pack-artifacts
build-linux-rococo
:
stage
:
build
<<
:
*build-linux
<<
:
*collect-artifacts
<<
:
*docker-env
<<
:
*compiler-info
rules
:
-
if
:
$PIPELINE == "rococo"
script
:
-
mkdir -p ./artifacts
-
VERSION="${CI_COMMIT_REF_NAME}"
# will be tag or branch name
-
time cargo build --release --verbose --features=real-overseer
-
sccache -s
-
*pack-artifacts
generate-impl-guide
:
stage
:
build
...
...
@@ -261,7 +261,7 @@ generate-impl-guide:
--tag "$IMAGE_NAME:$EXTRATAG" .
# The job will success only on the protected branch
-
echo "$Docker_Hub_Pass_Parity" |
buildah login --username "$Docker_Hub_User_Parity" --password-stdin docker.io
buildah login --username "$Docker_Hub_User_Parity" --password-stdin docker.io
-
buildah info
-
buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
-
buildah push --format=v2s2 "$IMAGE_NAME:$EXTRATAG"
...
...
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