Skip to content

Commit

Permalink
feat(ci): use latest gha build-push-notify
Browse files Browse the repository at this point in the history
DEVOPS-137
  • Loading branch information
remdub committed Jul 11, 2024
1 parent b1cce57 commit 284b162
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF'
echo '$REGISTRY_URL/$IMAGE_NAME:staging'
echo '$REGISTRY_URL/$IMAGE_NAME:staging-${{ github.run_number }}'
echo EOF
} >> $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 }}
Expand All @@ -26,7 +38,7 @@ jobs:
needs: build-push
steps:
- name: Deploy to staging and notify
uses: IMIO/gha/[email protected]
uses: IMIO/gha/[email protected].1
with:
RUNDECK_URL: ${{ secrets.RUNDECK_URL }}
RUNDECK_TOKEN: ${{ secrets.SMARTWEB_RUNDECK_TOKEN }}
Expand Down

0 comments on commit 284b162

Please sign in to comment.