diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bdd091b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +** @dfinity/ninja-devs @dfinity/sdk \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db01dbd..a6461fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,9 +107,17 @@ jobs: # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: + platforms: linux/amd64,linux/arm64 context: slim push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index 86b3b15..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -** @dfinity/testing-verification @dfinity/sdk \ No newline at end of file diff --git a/slim/Dockerfile b/slim/Dockerfile index ebb1347..f8bb6a9 100644 --- a/slim/Dockerfile +++ b/slim/Dockerfile @@ -1,9 +1,10 @@ -FROM --platform=linux/amd64 rust:1.89-slim-bookworm +FROM rust:1.89-slim-bookworm ENV NVM_DIR=/root/.nvm ENV NVM_VERSION=v0.40.1 ENV NODE_VERSION=22.10.0 ENV IC_MOPS_VERSION=1.11.1 +ENV CANDID_EXTRACTOR_VERSION=0.1.6 RUN apt -yq update RUN apt -yqq install --no-install-recommends curl ca-certificates libunwind-dev git @@ -26,9 +27,7 @@ ENV PATH="/root/.local/share/dfx/bin:$PATH" RUN rustup target add wasm32-unknown-unknown # Install candid-extractor -RUN curl -fsSL https://github.com/dfinity/candid-extractor/releases/download/0.1.6/candid-extractor-x86_64-unknown-linux-gnu.tar.gz -o candid-extractor.tar.gz -RUN tar -xvf candid-extractor.tar.gz && rm candid-extractor.tar.gz -RUN mv candid-extractor /usr/local/bin +RUN cargo install candid-extractor --version ${CANDID_EXTRACTOR_VERSION} # Clean apt RUN apt-get autoremove && apt-get clean