-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.54 KB
/
publish.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
46
47
48
49
name: publish release
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.7
- name: Create new buildx builder
run: docker buildx create --name custom_builder --use
- name: Build application
run: gradle build -Dquarkus.package.jar.type=uber-jar
- name: Build images and push to dockerhub
run: docker buildx build --platform=linux/amd64 --platform=linux/arm64 -t easybill/peppol-bis-billing-validator:${{github.ref_name}} -t easybill/peppol-bis-billing-validator:latest . --push
- name: Push current readme.md as docker hub repository description
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
with:
destination_container_repo: easybill/peppol-bis-billing-validator
provider: dockerhub
short_description: 'A small docker service to provide a validation endpoint for Peppol BIS Billing 3.0 rules'
readme_file: 'README.md'