-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate GitLab CI to GitHub Actions #729
Conversation
Yes, please |
Ok. Will arrange that. |
sudo apt install -y protobuf-compiler | ||
rustup target add wasm32-unknown-unknown | ||
rustup component add rust-src | ||
git clone -b master --depth 1 https://github.com/paritytech/polkadot-sdk.git polkadot-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do think it would be easy to cache these binaries similar to what https://github.com/paritytech/subxt/blob/master/.github/workflows/build-substrate.yml does?
We might be able to enable this in the CI instead of running it every night then...
The staking-miner-playaround is rarely changed and it might be possible to cache and only rebuild it if the versions doesn't match...
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, nice work
Just fix the failed job and it should be good to go.
Slightly changed logic. Separated jobs for building Docker image. One just to test build during PR checks. And second to build and push image to registry from |
@sergejparity is this ready to merge? I would want it in before publishing another release |
Yes. It's ready to merge. |
Migration of the GitLab CI to GitHub Actions in scope of https://github.com/paritytech/ci_cd/issues/841
Updated Dockerfile to use ubuntu:22.04 instead of 20.04, because recently Docker image build started to fail with an error:Fixedparitytech/staking-miner-v2
->paritytech/polkadot-staking-miner
@niklasad1 maybe it worth to start using
paritytech/polkadot-staking-miner
on hub.docker.com instead ofparitytech/staking-miner-v2
?!!! BEFORE MERGE
Setup repository secrets
DOCKERHUB_USERNAME
andDOCKERHUB_PASSWORD