Skip to content

chore(github): temp skip bump version #3

chore(github): temp skip bump version

chore(github): temp skip bump version #3

Workflow file for this run

name: Build and publish
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'liberica'
cache: 'maven'
- name: Package with Maven
run: mvn package -B -P prod "-Dstyle.color=always"
# - name: Bump version and sync git
# id: bump
# uses: mickem/gh-action-bump-maven-version@v1.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: g0tn/soat-tech-challenge-backend:$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout),g0tn/soat-tech-challenge-backend:latest
cache-from: type=gha
cache-to: type=gha,mode=max