Update SNAPSHOT version to v2.11.0 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build native image | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v[0-9]*' | |
jobs: | |
build-native-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Build Docker Native image - Main | |
if: github.ref == 'refs/heads/main' | |
run: > | |
mvn --batch-mode spring-boot:build-image -Pnative -DskipTests | |
-Ddocker.publishRegistry.username=gridsuiteci | |
-Ddocker.publishRegistry.password=${{ secrets.DOCKERHUB_TOKEN }} | |
-Dspring-boot.build-image.imageName=docker.io/gridsuite/directory-server-native | |
-Dspring-boot.build-image.publish=true | |
- name: Build Docker Native image - Tag | |
if: startsWith(github.ref, 'refs/tags/') | |
run: > | |
mvn --batch-mode spring-boot:build-image -Pnative -DskipTests | |
-Ddocker.publishRegistry.username=gridsuiteci | |
-Ddocker.publishRegistry.password=${{ secrets.DOCKERHUB_TOKEN }} | |
-Dspring-boot.build-image.imageName=docker.io/gridsuite/directory-server-native:${GITHUB_REF_NAME#v} | |
-Dspring-boot.build-image.publish=true |