Skip to content

Clean up the cluster on error + Refactor #78

Clean up the cluster on error + Refactor

Clean up the cluster on error + Refactor #78

Workflow file for this run

name: PR build
on:
pull_request:
branches:
- "main"
paths:
- "src/**"
- Cargo.toml
- Dockerfile
- .github/workflows/pr-build.yml
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
platform: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: false
platforms: linux/${{ matrix.platform }}
tags: test-${{ matrix.platform }}