Publish and deploy staging image #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish and deploy staging image | |
on: [workflow_dispatch] | |
jobs: | |
build-push: | |
runs-on: | |
group: self-hosted | |
steps: | |
- name: Build push and notify | |
uses: IMIO/gha/build-push-notify@main | |
with: | |
IMAGE_NAME: 'web/smartweb/mutual' | |
IMAGE_TAG: 'staging' | |
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | |
REGISTRY_USERNAME: ${{ secrets.SMARTWEB_HARBOR_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.SMARTWEB_HARBOR_PASSWORD }} | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }} | |
deploy: | |
runs-on: | |
group: self-hosted | |
needs: build-push | |
steps: | |
- name: Deploy to staging and notify | |
uses: IMIO/gha/rundeck-notify@main | |
with: | |
RUNDECK_URL: ${{ secrets.RUNDECK_URL }} | |
RUNDECK_TOKEN: ${{ secrets.SMARTWEB_RUNDECK_TOKEN }} | |
RUNDECK_JOB_ID: ${{ secrets.RUNDECK_DEPLOY_STAGING_JOB_ID }} | |
RUNDECK_PARAMETERS: '-X POST' | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }} |