Skip to content

Commit

Permalink
Build tagging pipeline (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramueSVA authored Apr 2, 2024
1 parent 01e9ae5 commit e23461d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-new-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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=${{ secrets.DOCKER_USERNAME }}/num-portal:${{ github.ref_name }} -DskipTests
docker tag ${{ secrets.DOCKER_USERNAME }}/num-portal ${{ secrets.DOCKER_USERNAME }}/num-portal:${{ github.ref_name }}
docker push ${{ secrets.DOCKER_USERNAME }}/num-portal:${{ github.ref_name }}
echo "### :rocket: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit e23461d

Please sign in to comment.