Skip to content

Commit

Permalink
Merge pull request #12 from iron-fish/mat/add-job-to-developer
Browse files Browse the repository at this point in the history
add deploy action to developer branch
  • Loading branch information
mat-if authored Nov 20, 2024
2 parents 5b332d6 + f08969f commit 988e2a0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-docker.yaml
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

0 comments on commit 988e2a0

Please sign in to comment.