-
Notifications
You must be signed in to change notification settings - Fork 266
29 lines (27 loc) · 973 Bytes
/
snapshot.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
name: Publish Snapshot to Docker Hub
on:
push:
branches:
- master
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Checkout Extension SDK
run: |
git clone https://github.com/hivemq/hivemq-extension-sdk.git ../hivemq-extension-sdk
cd ../hivemq-extension-sdk
git checkout ${GITHUB_REF##*/} || true
cd ../hivemq-community-edition
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
distribution: 'temurin'
java-version: '11'
- name: Push Snapshot To Docker Hub
run: ./gradlew pushOciImage --registry dockerHub --tag snapshot
env:
ORG_GRADLE_PROJECT_dockerHubUsername: ${{ secrets.DOCKER_USERNAME }}
ORG_GRADLE_PROJECT_dockerHubPassword: ${{ secrets.DOCKER_TOKEN }}