-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github/workflows: add deploy relay workflows (#2032)
Relies on ObolNetwork/obol-infrastructure#538 Adds deployment of dev relay on merge, and a workflow to deploy two of our prod relays with a chosen tag/short sha category: feature ticket: #2031
- Loading branch information
1 parent
c968878
commit e53f3d3
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Deploy Dev Relay' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
relay_name: | ||
description: The docker image tag to deploy | ||
required: true | ||
type: choice | ||
options: | ||
- relay-dev | ||
image_tag: | ||
description: The docker image tag to deploy | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
deploy-relay: | ||
runs-on: ubuntu-latest | ||
name: Build Docker Image | ||
steps: | ||
- name: Trigger relay nonprod deploy job | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.CHARON_K8S_REPO_ACCESS_TOKEN }} | ||
repository: ObolNetwork/obol-infrastructure | ||
event-type: relay-nonprod-deployment | ||
client-payload: | | ||
'{ | ||
"relay_name": "${{ github.relay_name }}", | ||
"relay_version": "${{ github.image_tag }}" | ||
}' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: 'Deploy Prod Relay' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
relay_name: | ||
description: The docker image tag to deploy | ||
required: true | ||
type: choice | ||
options: | ||
- relay-0 | ||
- relay-1 | ||
image_tag: | ||
description: The docker image tag to deploy | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
deploy-relay: | ||
runs-on: ubuntu-latest | ||
name: Build Docker Image | ||
steps: | ||
- name: Trigger relay deploy job | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.CHARON_K8S_REPO_ACCESS_TOKEN }} | ||
repository: ObolNetwork/obol-infrastructure | ||
event-type: relay-prod-deployment | ||
client-payload: | | ||
'{ | ||
"relay_name": "${{ github.relay_name }}", | ||
"relay_version": "${{ github.image_tag }}" | ||
}' |