From fb50c0a1a350245b55f5868bb772159394f18b1d Mon Sep 17 00:00:00 2001 From: Tomek Marciniak Date: Wed, 4 Sep 2024 23:00:33 +0200 Subject: [PATCH] chore(repo): try creating multi-platform --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 766b296..d7dc57c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,6 @@ jobs: needs: test steps: - uses: actions/checkout@v4 - - name: Install Nixpacks - run: | - curl -LO https://github.com/railwayapp/nixpacks/releases/download/v1.27.1/nixpacks-v1.27.1-amd64.deb - sudo dpkg -i nixpacks-v1.27.1-amd64.deb - uses: oven-sh/setup-bun@v2 - run: bun i --no-save - run: bun run build @@ -33,7 +29,9 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Tag image - run: docker tag $(docker images --format='{{.ID}}' | head -1) ghcr.io/palladians/klesia:$(git rev-parse --short HEAD) - - name: Push to GHCR - run: docker push ghcr.io/palladians/klesia:$(git rev-parse --short HEAD) + - name: Build and push Docker images + uses: iloveitaly/github-action-nixpacks@main + with: + platforms: "linux/amd64,linux/arm64" + push: true + tags: ghcr.io/palladians/klesia:$(git rev-parse --short HEAD)