From 688c12686a5194409c8efa945fd8b60462d93c43 Mon Sep 17 00:00:00 2001 From: Miguel Duarte Barroso Date: Wed, 5 Oct 2022 11:15:13 +0200 Subject: [PATCH] ci, img build: build the controller image Signed-off-by: Miguel Duarte Barroso --- .github/workflows/image-build.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/image-build.yaml diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml new file mode 100644 index 00000000..0c670887 --- /dev/null +++ b/.github/workflows/image-build.yaml @@ -0,0 +1,20 @@ +name: Image build +on: [pull_request] +jobs: + build-amd64: + name: Image build/amd64 + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build container image + uses: docker/build-push-action@v2 + with: + context: . + push: false + tags: ghcr.io/${{ github.repository }}:latest-amd64 + file: Dockerfile