Skip to content

Update release-maven-image.yml #50

Update release-maven-image.yml

Update release-maven-image.yml #50

name: Compliance check and build test
env:
app-path: "/sps-frontend" # example "/backend" for monorepos or "" for multi repos
enable-node: true
on: # defining on which triggers this action should run
push:
branches:
# define on push of which branches should this action be run
paths:
- "sps-frontend/**" # define the concrete paths on which a change triggers this action, e.g. backend/**
- ".github/workflows/**" # define the concrete paths on which a change triggers this action, e.g. backend/**
pull_request: # trigger this action also on Pull Requests
types: [opened, reopened]
jobs:
build-maven:
runs-on: ubuntu-latest
steps:
- uses: it-at-m/.github/.github/actions/action-maven-node-build@reuseable-workflow
with:
app-path: "${{ env.app-path }}"
enable-node: "${{ env.enable-node }}"
build-image:
runs-on: ubuntu-latest
needs: build-maven
if: github.ref == 'refs/heads/main'
steps:
- uses: it-at-m/.github/.github/actions/action-build-image@reuseable-workflow
with:
app-path: "${{ env.app-path }}"
registry-password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
registry-username: ${{ github.actor }}