forked from oreoslabs/oreowallet-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from iron-fish/mat/add-job-to-developer
add deploy action to developer branch
- Loading branch information
Showing
1 changed file
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy Node Docker Image | ||
on: | ||
push: | ||
branches: | ||
'developer' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
Deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
|
||
- name: Login to AWS Registry | ||
run: aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $AWS_REGISTRY_URL | ||
env: | ||
AWS_REGISTRY_URL: ${{ secrets.AWS_NODE_REGISTRY_URL }} | ||
|
||
- name: Build Node Image | ||
run: docker build -t oreowallet . | ||
|
||
- name: Deploy Node Image to AWS | ||
run: | | ||
docker tag oreowallet ${{ secrets.AWS_NODE_REGISTRY_URL }}/oreowallet:developer | ||
docker push ${{ secrets.AWS_NODE_REGISTRY_URL }}/oreowallet:developer |