diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a337558..9157948 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -19,11 +19,9 @@ env: # github.repository as / IMAGE_NAME: ${{ github.repository }} - jobs: build: - - runs-on: ubuntu-latest + runs-on: self-hosted permissions: contents: read packages: write @@ -35,6 +33,10 @@ jobs: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + # support multiple architectures + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx uses: docker/setup-buildx-action@v3.0.0 @@ -64,6 +66,7 @@ jobs: uses: docker/build-push-action@v5.0.0 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index 84acb0c..81c3c25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY stack-config/config.yaml $STACK_ROOT/config.yaml COPY stack-config/global-project/stack.yaml $STACK_ROOT/global-project/stack.yaml RUN apt-get update \ - && apt-get -y install curl perl tar \ + && apt-get -y install curl perl tar llvm libnuma-dev \ && bash -c "curl -sSL https://get.haskellstack.org/ | sh" \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*