From c37f01efea13957a3efd3c52da56b6348eeaf4c6 Mon Sep 17 00:00:00 2001 From: rdubois Date: Thu, 11 Jul 2024 15:18:24 +0200 Subject: [PATCH] feat(ci): use latest gha build-push-notify DEVOPS-137 --- .github/workflows/staging.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 1bd2def..0ada44d 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -5,18 +5,30 @@ on: - main tags: - '!**' +env: + IMAGE_NAME: 'web/smartweb/mutual' + REGISTRY_URL: ${{ secrets.HARBOR_URL }} + jobs: build-push: runs-on: group: self-hosted if: contains(github.event.head_commit.message, 'Back to development:') == false && contains(github.event.head_commit.message, 'Preparing release') == false steps: + - name: Build tags + run: | + { + echo 'IMAGE_TAGS<> $GITHUB_ENV - name: Build push and notify - uses: IMIO/gha/build-push-notify@v1.0 + uses: IMIO/gha/build-push-notify@main with: - IMAGE_NAME: 'web/smartweb/mutual' - IMAGE_TAG: 'staging' - REGISTRY_URL: ${{ secrets.HARBOR_URL }} + IMAGE_NAME: ${{ env.IMAGE_NAME }} + IMAGE_TAGS: ${{ env.IMAGE_TAGS }} + REGISTRY_URL: ${{ env.REGISTRY_URL}} REGISTRY_USERNAME: ${{ secrets.SMARTWEB_HARBOR_USERNAME }} REGISTRY_PASSWORD: ${{ secrets.SMARTWEB_HARBOR_PASSWORD }} MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }} @@ -26,7 +38,7 @@ jobs: needs: build-push steps: - name: Deploy to staging and notify - uses: IMIO/gha/rundeck-notify@v1.0 + uses: IMIO/gha/rundeck-notify@v1.0.1 with: RUNDECK_URL: ${{ secrets.RUNDECK_URL }} RUNDECK_TOKEN: ${{ secrets.SMARTWEB_RUNDECK_TOKEN }}