-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.5 KB
/
onTagged.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
name: Compile / onTagged
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Setup / Checkout
uses: actions/checkout@v2
- name: Setup / Environment Variables
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Setup / JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Setup / settings.xml
uses: s4u/maven-settings-action@v2.2.0
with:
servers: '[{"id": "default", "username": "${{ secrets.nexus_user }}", "password": "${{ secrets.nexus_password }}"}]'
mirrors: '[{"id": "default", "name": "default", "mirrorOf": "*", "url": "https://nexus.conceptive.io/repository/maven-public/"}]'
- name: Setup / Docker Login
uses: azure/docker-login@v1
with:
login-server: images.conceptive.io
username: ${{ secrets.nexus_user }}
password: ${{ secrets.nexus_password }}
- name: Maven / Download Dependencies
run: mvn -Dmaven.artifact.threads=30 -T 1C -B de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies
- name: JVM / Compile
run: mvn -T 1C -Dquarkus.container-image.build=true -Dquarkus.container-image.additional-tags=${{ env.RELEASE_VERSION }} clean package
- name: Deploy / Docker
run: |
docker push images.conceptive.io/homestack.satellite:latest
docker push images.conceptive.io/homestack.satellite:${{ env.RELEASE_VERSION }}