From 180c33113270b97257b70c0e833fe3c319c56713 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Thu, 6 Mar 2025 16:12:48 -0800 Subject: [PATCH] Update deploy-pm4.yml --- .github/workflows/deploy-pm4.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-pm4.yml b/.github/workflows/deploy-pm4.yml index 1bfcc5b..38dec1c 100644 --- a/.github/workflows/deploy-pm4.yml +++ b/.github/workflows/deploy-pm4.yml @@ -47,7 +47,14 @@ jobs: uses: ./.github/actions/common with: token: ${{ secrets.GIT_TOKEN }} - + + - name: Login to Harbor + uses: docker/login-action@v2 + with: + registry: ${{ secrets.REGISTRY_HOST }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Set image name run: | RESOLVED_IMAGE_TAG=${{ env.IMAGE_TAG }} @@ -56,7 +63,7 @@ jobs: run: | cd pm4-k8s-distribution/images export CI_RELEASE_BRANCH=$RELEASE_BRANCH - branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} bash build.k8s-cicd.sh + branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} registry_host=${{ secrets.REGISTRY_HOST }} bash build.k8s-cicd.sh echo "VERSION=${{ env.IMAGE_TAG }}" >> $GITHUB_ENV - name: List Images run: | @@ -73,12 +80,6 @@ jobs: # severity: 'MEDIUM,HIGH,CRITICAL' # env: # TRIVY_TIMEOUT: 30m - - name: Login to Harbor - uses: docker/login-action@v2 - with: - registry: ${{ secrets.REGISTRY_HOST }} - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_PASSWORD }} - name: Push Enterprise Image to Harbor run: | docker tag processmaker/enterprise:${{env.IMAGE_TAG}} ${{ secrets.REGISTRY_HOST }}/processmaker/enterprise:${{env.IMAGE_TAG}}