Add temp fix for node ids in migrate script #38
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: Deploy and Rollback | |
on: | |
push: | |
branches: | |
- community_version | |
workflow_dispatch: | |
inputs: | |
action: | |
description: 'Action (deploy/latest or rollback)' | |
required: true | |
default: 'deploy/latest' | |
jobs: | |
build-and-deploy: | |
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'deploy/latest') | |
name: build and deploy | |
runs-on: | |
- self-hosted | |
- testing | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build JHU Image | |
run: make jhu_up | |
- name: Add demo content | |
run: make jhu_demo_content | |
- name: Notify Slack | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
if: failure() | |
rollback: | |
if: github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'rollback' | |
name: rollback | |
runs-on: | |
- self-hosted | |
- testing | |
steps: | |
# Add steps here for rolling back your deployment, e.g.: | |
- name: Checkout previous version | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.before }} | |
# ... additional rollback steps ... | |
- name: Notify Slack | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
if: failure() |