-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (43 loc) · 1.44 KB
/
release.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
name: Publish Artifacts
on:
release:
types: [published]
jobs:
deploy_artifacts:
name: Deploy JARs To Maven Central
runs-on: ubuntu-latest
steps:
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- uses: actions/checkout@v2
- name: Configure GPG Key
run: |
mkdir -p ~/.gnupg/
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key
gpg --import ~/.gnupg/private.key
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: Deploy To Maven Central
run: mvn deploy -DskipTests --file timbermill-java/pom.xml -pl timbermill-api,timbermill-client,timbermill-local
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Build Timbermill Server
run: mvn -B package -DskipTests --file timbermill-java/timbermill-server/pom.xml
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker and push
id: docker_build
uses: docker/[email protected]
with:
context: ./timbermill-java/timbermill-server/
push: true
tags: salesforce/timbermill:latest