-
Notifications
You must be signed in to change notification settings - Fork 266
31 lines (29 loc) · 1002 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
30
31
name: Publish Snapshot to Docker Hub
on:
push:
branches:
- master
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- 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@91d3aa4956ec4a53e477c4907347b5e3481be8c9 # v2
with:
distribution: 'adopt'
java-version: '11'
- name: Login to Docker Hub
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Push Snapshot To Docker Hub
run: PUSH_IMAGE=true docker/build.sh