update to java 21 & spring boot 3.2.1 && spring-cloud 2023.0.0 #3
Workflow file for this run
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: Docker build and publish image | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml -DskipTests=true | |
- name: Publish to Registry | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USERNAME}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Build the Docker image | |
run: docker build -t wlanboy/propertygenerator:latest . --build-arg JAR_FILE=./target/cloudconfigpropertygenerator-0.0.1-SNAPSHOT.jar | |
- name: Docker Push | |
run: docker push wlanboy/propertygenerator:latest |