From 46ac715efaafecc648b1e2d32cac7327451ac190 Mon Sep 17 00:00:00 2001
From: Pascal Zarrad
Date: Sun, 1 Aug 2021 20:50:54 +0200
Subject: [PATCH] Add software build GitHub action
---
.github/workflows/software.yml | 41 ++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 .github/workflows/software.yml
diff --git a/.github/workflows/software.yml b/.github/workflows/software.yml
new file mode 100644
index 0000000..59a97ac
--- /dev/null
+++ b/.github/workflows/software.yml
@@ -0,0 +1,41 @@
+name: build software
+on:
+ schedule:
+ - cron: "0 0 * * 1"
+ push:
+ branches:
+ - master
+ paths:
+ - 'software/**'
+
+jobs:
+ cassandra:
+ name: "software:${{ matrix.cassandra }}"
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ cassandra:
+ - cassandra_java11_python2
+ - cassandra_java11_python3
+ steps:
+ - uses: actions/checkout@v2
+ - uses: docker/setup-buildx-action@v1
+ with:
+ version: "v0.5.1"
+ buildkitd-flags: --debug
+ - uses: docker/login-action@v1
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.REGISTRY_TOKEN }}
+ - uses: docker/build-push-action@v2
+ with:
+ context: ./software/cassandra/${{ matrix.cassandra }}
+ file: ./software/cassandra/${{ matrix.cassandra }}/Dockerfile
+ platforms: linux/amd64
+ push: true
+ tags: |
+ ghcr.io/parkervcp/software:${{ matrix.cassandra }}
+
+# Copy a job above and adjust it to enable the build of newly added software