Merge pull request #659 from NUM-Forschungsdatenplattform/release/1.22.0 #8
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: Release new tag | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Login to docker hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push docker image | |
run: | | |
mvn spring-boot:build-image -Dspring-boot.build-image.imageName=numforschungsdatenplattform/num-portal:${{ github.ref_name }} -DskipTests | |
docker push numforschungsdatenplattform/num-portal:${{ github.ref_name }} | |
echo "### :rocket: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY |