From 52cdfcb07ca96220f295ca5eb0ea2d93f817ba10 Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Sat, 18 Sep 2021 13:16:39 +0200
Subject: [PATCH] ci: Create dev-builds on push to develop branch

---
 .github/workflows/dev-build.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 .github/workflows/dev-build.yml

diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml
new file mode 100644
index 0000000..3af553a
--- /dev/null
+++ b/.github/workflows/dev-build.yml
@@ -0,0 +1,33 @@
+name: Create Dev-Build
+
+on:
+  push:
+    branches:
+      - develop
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      # DOCKER RELATED
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v1
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v1
+      - name: Login to GitHub Container Registry
+        uses: docker/login-action@v1
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+      - name: Build and push
+        uses: docker/build-push-action@v2
+        with:
+          context: .
+          file: ./Dockerfile.develop
+          platforms: linux/amd64,linux/arm/v7,linux/arm64
+          push: true
+          tags: |
+            ghcr.io/griefed/ltt-mapmaker:develop
+            ghcr.io/griefed/ltt-mapmaker:develop-${{ github.sha }}
-- 
GitLab