-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.64 KB
/
dockerimage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish Docker images
on: [repository_dispatch]
jobs:
build_and_publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
baseimage:
- { image: "oracle/graalvm-ce:19.3.1-java8", tag: graalvm }
- { image: "openjdk:8u171-jdk-alpine3.8", tag: openjdk8 }
minecraft:
- { jar: paper-1.18.1-77, dockerfile: Dockerfile }
- { jar: paper-1.15.2, dockerfile: Dockerfile }
- { jar: paper-1.14.4, dockerfile: Dockerfile }
- { jar: nukkit-1.0, dockerfile: Dockerfile-nukkit }
- { jar: nukkit-2.0, dockerfile: Dockerfile-nukkit }
steps:
- uses: actions/checkout@v2
- name: Publish Docker image to Registry
uses: elgohr/Publish-Docker-Github-Action@2.12
env:
BASEIMAGE: ${{ matrix.baseimage.image }}
MINECRAFT_JAR: ${{ matrix.minecraft.jar }}.jar
with:
name: magikcraft/minecraft
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ${{ matrix.minecraft.dockerfile }}
buildargs: BASEIMAGE, MINECRAFT_JAR
tags: ${{ matrix.minecraft.jar }}-${{ matrix.baseimage.tag }}
notify_Camunda_Cloud:
runs-on: ubuntu-latest
needs: build_and_publish
steps:
- name: Tell Camunda Cloud What's up!
uses: jwulf/zeebe-action@1.0.1
with:
clientConfig: ${{ secrets.ZEEBE_CLIENT_CONFIG }}
operation: publishMessage
message_name: BASE_IMAGE_REBUILT
correlationKey: ${{ github.event.client_payload.buildid }}
variables: '{"test_passed": "false"}'