-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 971 Bytes
/
build.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
name: build
on:
push:
branches:
- 'current'
pull_request:
branches:
- 'current'
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build project
run: mvn -ntp install
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to GHCR
run: |
cd azure-keyvault
mvn -B -DskipTests=true -DskipITs=true -ntp docker:build docker:push
cd ../azure-appconfig
mvn -B -DskipTests=true -DskipITs=true -ntp docker:build docker:push