Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

Commit a136400

Browse files
committed
adding logic to the .github/workflows/omgx-publish-master.yml for pushing same tag containers to aws ecr also
1 parent 03018ce commit a136400

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/omgx-publish-master.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
username: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
1717
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
1818

19+
- name: Configure AWS credentials
20+
uses: aws-actions/configure-aws-credentials@v1
21+
with:
22+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
23+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
24+
aws-region: us-east-1
25+
1926
- uses: actions/checkout@v2
2027

2128
- name: Get yarn cache directory path
@@ -57,3 +64,9 @@ jobs:
5764
echo "$1"
5865
docker push "$i"
5966
done
67+
68+
- name: Build and push docker images to AWS
69+
working-directory: ./ops_omgx
70+
run: |
71+
rm -rf cloudformation/deployer-rinkeby.yaml cloudformation/dummy-transaction.yaml cloudformation/omgx-monitor.yaml cloudformation/blockexplorer-blockscout.yaml cloudformation/transaction-monitor.yaml
72+
./cfn-devenv.sh push2aws --from-tag ${{ steps.tag.outputs.VERSION }} --deploy-tag ${{ steps.tag.outputs.VERSION }}

0 commit comments

Comments
 (0)