From f4ce3f80b7ac10f9a488c143eb45dca802ecde83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 26 Jun 2024 11:01:48 +0200 Subject: [PATCH] Add workflow to test the build of the image (#39) --- .github/workflows/build.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..7163720 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,20 @@ +name: Build + +on: + pull_request: + branches: + - main + +jobs: + build: + name: Build image + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.7 + + - name: Build + uses: docker/build-push-action@v6.1.0 + with: + context: . + push: false + tags: "ghcr.io/${{ github.repository_owner }}/private-demo:pr-${{ github.event.number }}"