Make cassandra to a generic yolks image

This commit is contained in:
Pascal Zarrad
2021-08-01 22:37:08 +02:00
parent b797d567e4
commit 70af7a9dff
5 changed files with 43 additions and 68 deletions

38
.github/workflows/cassandra.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: build cassandra
on:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- master
paths:
- cassandra/**
jobs:
push:
name: "yolks:cassandra_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- java8_python2
- 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: ./cassandra
file: ./cassandra/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/parkervcp/yolks:cassandra_${{ matrix.tag }}