Add a GitHub workflow to build Docker images
authorWilliam Desportes <redacted>
Tue, 17 Aug 2021 12:11:15 +0000 (14:11 +0200)
committerWilliam Desportes <redacted>
Wed, 15 Sep 2021 21:18:17 +0000 (23:18 +0200)
.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..b3493d8
--- /dev/null
@@ -0,0 +1,17 @@
+name: Build Docker image
+
+on: [push]
+
+jobs:
+  build-variants:
+    name: Build image variants
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        variants: ["apache", "fpm", "fpm-alpine"]
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+      - name: Build image variant "${{ matrix.variants }}"
+        run: cd ${{ matrix.variants }} && docker build ./
git clone https://git.99rst.org/PROJECT