chore(repo): try creating multi-platform #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MinaJS Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun i --no-save | |
- run: bun run test | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun i --no-save | |
- run: bun run build | |
- run: bunx pkg-pr-new publish './packages/klesia-sdk' | |
- run: nixpacks build . --config apps/klesia/nixpacks.toml | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- 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) |