diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c29a2a..e542ed9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,7 +45,6 @@ jobs: labels: | org.opencontainers.image.licenses=UNLICENSED - - id : qemu name: Set up QEMU uses: docker/setup-qemu-action@v2 with: diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml new file mode 100644 index 0000000..d858bed --- /dev/null +++ b/.github/workflows/test-pr.yml @@ -0,0 +1,37 @@ +name: Test PR + +on: + pull_request: + branches: + - '**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: amd64,arm64,arm + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build + uses: docker/build-push-action@v3 + with: + pull : true + push : false + context : . + file : ./Dockerfile + platforms : linux/amd64,linux/arm/v7,linux/arm64/v8 + cache-from : type=gha,scope=${{ github.workflow }} + cache-to : type=gha,scope=${{ github.workflow }},mode=max