Skip to content

Commit 077961e

Browse files
authored
supports deploying branch-named Docker images to AWS (#5250)
adds a workflow input for `AWS:{BRANCH}` and adds a deploy step for deploying the branch-named image to our AWS ECR repository
1 parent caf266a commit 077961e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy-node-docker-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ on:
2525
description: 'AWS:{GIT_SHA}'
2626
type: boolean
2727
default: false
28+
aws_tag_git_branch:
29+
description: 'AWS:{BRANCH}'
30+
type: boolean
31+
default: false
2832

2933
permissions:
3034
contents: read
@@ -116,6 +120,13 @@ jobs:
116120
docker tag ironfish ${{ secrets.AWS_NODE_REGISTRY_URL }}/ironfish:${{ github.ref_name }}
117121
docker push ${{ secrets.AWS_NODE_REGISTRY_URL }}/ironfish:${{ github.ref_name }}
118122
123+
# Used to deploy images for specific branches
124+
- name: Deploy Node Image to AWS:${{ github.ref_name }}
125+
if: ${{ inputs.aws_tag_git_branch && github.ref_type == 'branch' }}
126+
run: |
127+
docker tag ironfish ${{ secrets.AWS_NODE_REGISTRY_URL }}/ironfish:${{ github.ref_name }}
128+
docker push ${{ secrets.AWS_NODE_REGISTRY_URL }}/ironfish:${{ github.ref_name }}
129+
119130
- name: Deploy Node Image to AWS:testnet
120131
if: ${{ inputs.aws_tag_testnet }}
121132
run: |

0 commit comments

Comments
 (0)