Skip to content

add step to github action with generating settings.xml #12

add step to github action with generating settings.xml

add step to github action with generating settings.xml #12

Workflow file for this run

name: Release
on:
push:
branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.m2
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-test-
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: s4u/[email protected]
- name: Build with Maven
run: mvn -B package -Dpackaging=native-image -DskipTests
- name: Docker login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/opendonationassistant/oda-payment-processing:${{ github.RUN_NUMBER }}