Update to Spring Boot 3.1.5 #34
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 and Publish Docker Images for Bonus Microservice | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-bonus: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Build bonus microservice with Maven | |
run: cd microservice-istio-bonus && mvn -B package | |
- name: Create Docker images for bonus microservice | |
run: cd microservice-istio-bonus && sh ./docker-build.sh | |
- name: Log into registry | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
- name: Push image for bonus microservices | |
run: | | |
IMAGE_PREFIX=${{ secrets.DOCKER_USERNAME }} | |
docker tag microservice-istio-bonus:1 $IMAGE_PREFIX/microservice-istio-bonus:1 | |
docker push $IMAGE_PREFIX/microservice-istio-bonus:1 |