-
Notifications
You must be signed in to change notification settings - Fork 31
ci: auto deploy codex on devnet #1302
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
Conversation
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.
In @veaceslavdoina we trust
.github/workflows/deploy-devnet.yml
Outdated
run: | | ||
for node in {1..1}; do | ||
kubectl -n "${{ env.CODEX_NAMESPACE }}" patch statefulset codex-validator-${node} \ | ||
--patch '{"spec": {"template": {"spec":{"containers":[{"name": "codex", "image":"codexstorage/nim-codex:sha-352273f-dist-tests"}]}}}}' |
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.
There's a hard-coded codex image here. Is that intentional?
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.
Good observation, fixing!
PR is a part of a Devnet launch and it was required to
docker-reusable.yml
workflow to output Codex Docker image tagdeploy-devnet.yml
workflow which will update bootstrap and cloud storage nodes and restart crawler/discordbotdocker-dist-tests.yml
workflow to triggerdeploy-devnet.yml
from step 2.It works in the following way
master
push,Docker - Dist-Tests
will deploy Smart contracts and Codex on DevnetDocker - Dist-Tests
on master or a custom branch and set a checkbox to deploy Codex on DevnetDeploy - Devnet
workflowRemote workflow is called using a token generated based on GitHub App installed in nim-codex and codex-contracts-eth repositories. Appropriate secrets were added to nim-codex repository.
screenshots - smart contracts deployment is missed
Deploy result
Run
Docker - Dist-Tests
and deploy on DevnetRun
Deploy - Devnet
to deploy a custom image on DevnetCloses https://github.com/codex-storage/infra-codex/issues/347, closes https://github.com/codex-storage/infra-codex/issues/353.