From e1fec6e65cbbb4f66c9ad7c15c652ccccf026b02 Mon Sep 17 00:00:00 2001 From: Fredrik Simonsson Date: Sun, 12 Nov 2023 18:55:22 +0900 Subject: [PATCH 1/2] Release v0.4.0 --- Dockerfile | 2 +- README.md | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6447ca6..d42c899 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/nodlecode/try-runtime-cli:v0.3.5 +FROM ghcr.io/nodlecode/try-runtime-cli:v0.4.0 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index d88b7e3..e7a105f 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,28 @@ with: > By convention please follow the release numbers from [Parity's repo](https://github.com/paritytech/try-runtime-cli). -1. Run the [prebuild github action](https://github.com/NodleCode/action-try-runtime/actions/workflows/base-image.yml) to pre-build `try-runtime`. Pass it the latest version from parity's repo (for example `v0.3.5`). +1. Run the [prebuild github action](https://github.com/NodleCode/action-try-runtime/actions/workflows/base-image.yml) to pre-build `try-runtime`. Pass it the latest version from parity's repo (for example `v0.4.0`). 2. Wait for the action to build succesfully, which will take a little while. -3. Update the first line in the action [`Dockerfile`](./Dockerfile) to use the version number of the new prebuilt container (in this example `v0.3.5`). -4. Draft a new github release for the same version number (`v0.3.5` in this example). +3. Update the first line in the action [`Dockerfile`](./Dockerfile) to use the version number of the new prebuilt container (in this example `v0.4.0`). +4. Draft a new github release for the same version number (`v0.4.0` in this example). 5. You may now use the newly release and built action in your CI/CD pipeline. > We prebuild a docker container with `try-runtime` to ensure Github does not rebuilt `try-runtime` everytime we use this action, thus giving us a nice speed improvement. + +### Troubleshooting + +Execute the prebuilt docker image + +``` +docker run -v ~/nodle/chain/snapshots:/snapshots ghcr.io/nodlecode/try-runtime-cli:v0.4.0 try-runtime --runtime ./snapshots/runtime_eden.wasm on-runtime-upgrade snap -p snapshots/eden-ci +``` + +Build and run image locally +``` +cd base +docker build --build-arg VERSION=v0.4.0 . -t milkman -f ./Dockerfile + +docker run milkman try-runtime --version +docker run milkman try-runtime --help +docker run -v ~/nodle/chain/snapshots:/snapshots milkman try-runtime --runtime ./snapshots/runtime_eden.wasm on-runtime-upgrade snap -p snapshots/eden-ci +``` From 011c5d7a55d64b1987f65544330e74cba89963b3 Mon Sep 17 00:00:00 2001 From: Fredrik Simonsson Date: Sun, 12 Nov 2023 19:23:17 +0900 Subject: [PATCH 2/2] Update base-image.yml --- .github/workflows/base-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/base-image.yml b/.github/workflows/base-image.yml index b8450e6..8c387ad 100644 --- a/.github/workflows/base-image.yml +++ b/.github/workflows/base-image.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Docker meta id: meta uses: docker/metadata-action@v4