diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml index 13c9ea1..ec066f1 100644 --- a/.github/workflows/release-on-tag.yml +++ b/.github/workflows/release-on-tag.yml @@ -4,17 +4,11 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} -# on: -# push: -# branches: [ "master" ] -# pull_request: -# branches: [ "master" ] - -on: workflow_dispatch -# push: -# # Pattern matched against refs/tags -# tags: -# - '*' # Push events to every tag not containing / +on: + push: + # Pattern matched against refs/tags + tags: + - '*' # Push events to every tag not containing / jobs: @@ -34,8 +28,10 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn -B package - + env: + USER_NAME: ${{ secrets.PPE_USER_NAME }} + ACCESS_TOKEN: ${{ secrets.PPE_ACCESS_TOKEN }} + run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml -B package - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1