From 638ab7927527e8c150f69cd4810d4158022c623f Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Thu, 1 Aug 2024 21:28:07 +0200 Subject: [PATCH] ci: add dev build workflow --- .github/workflows/build-dev.yaml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build-dev.yaml diff --git a/.github/workflows/build-dev.yaml b/.github/workflows/build-dev.yaml new file mode 100644 index 0000000..cb87202 --- /dev/null +++ b/.github/workflows/build-dev.yaml @@ -0,0 +1,44 @@ +name: Build Image + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to the GitHub Container Registry + uses: docker/login-action@v3.2.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Extract metadata for the Docker image + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ghcr.io/${{ github.repository }} + tags: | + type=raw,value=dev + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + provenance: false + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max