Skip to content

add commit tags to subsquid image and create production release workflow#3086

Merged
KaiserKarel merged 15 commits intoComposableFi:mainfrom
radupopa2010:PBL-328-subsquid-add-version-for-the-docker-image
Feb 3, 2023
Merged

add commit tags to subsquid image and create production release workflow#3086
KaiserKarel merged 15 commits intoComposableFi:mainfrom
radupopa2010:PBL-328-subsquid-add-version-for-the-docker-image

Conversation

@radupopa2010
Copy link
Contributor

@radupopa2010 radupopa2010 commented Feb 1, 2023

https://app.clickup.com/t/20465559/PBL-328

I created this PR to add image tags for subsquid container image
each merge on main should produce a tag with the commit sha
separate workflow file that reacts on tags to produce the production version

@radupopa2010 radupopa2010 requested review from a team February 1, 2023 14:34
@KaiserKarel
Copy link
Contributor

Copy link
Contributor

@KaiserKarel KaiserKarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To test this workflow, the base branch needs to be in the monorepo, instead of radupopo2010 (annoying limitation of github).

@radupopa2010
Copy link
Contributor Author

To test this workflow, the base branch needs to be in the monorepo, instead of radupopo2010 (annoying limitation of github).

so I should push a branch to the monorepo? (https://github.com/ComposableFi/composable)

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/5797c2465c9e2160d01d3d5735f2ac25148ed6da --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/5797c2465c9e2160d01d3d5735f2ac25148ed6da#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/5797c2465c9e2160d01d3d5735f2ac25148ed6da#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/5797c2465c9e2160d01d3d5735f2ac25148ed6da#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/5797c2465c9e2160d01d3d5735f2ac25148ed6da#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package
For more info on how to use Nix, check out our Nix docs
Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

@KaiserKarel
Copy link
Contributor

To test this workflow, the base branch needs to be in the monorepo, instead of radupopo2010 (annoying limitation of github).

so I should push a branch to the monorepo? (https://github.com/ComposableFi/composable)

yeah; for CI to check this, the base branch needs to be the monorepo.

g-la-d-os added a commit that referenced this pull request Feb 3, 2023
g-la-d-os added a commit that referenced this pull request Feb 3, 2023
@radupopa2010 radupopa2010 requested a review from a team as a code owner February 3, 2023 10:31
@KaiserKarel KaiserKarel merged commit 82ec7f8 into ComposableFi:main Feb 3, 2023
@radupopa2010 radupopa2010 deleted the PBL-328-subsquid-add-version-for-the-docker-image branch February 9, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants