Skip to content

Commit

Permalink
fix(#136): testing logging in to ecr
Browse files Browse the repository at this point in the history
  • Loading branch information
witash committed Oct 21, 2024
1 parent 6318b9f commit 60f65be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.ECR_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ECR_SECRET_ACCESS_KEY }}
aws-region: eu-west-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions docker/docker-compose.cht-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.9'

services:
haproxy:
image: public.ecr.aws/medic/cht-haproxy:4.1.0-alpha
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy:4.1.0-alpha
restart: always
hostname: haproxy
environment:
Expand All @@ -26,7 +26,7 @@ services:


healthcheck:
image: public.ecr.aws/medic/cht-haproxy-healthcheck:4.1.0-alpha
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-haproxy-healthcheck:4.1.0-alpha
restart: always
environment:
- "COUCHDB_SERVERS=${COUCHDB_SERVERS:-couchdb}"
Expand All @@ -41,7 +41,7 @@ services:
- cht-net

api:
image: public.ecr.aws/medic/cht-api:4.1.0-alpha
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-api:4.1.0-alpha
restart: always
depends_on:
- haproxy
Expand All @@ -62,7 +62,7 @@ services:
- cht-net

sentinel:
image: public.ecr.aws/medic/cht-sentinel:4.1.0-alpha
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-sentinel:4.1.0-alpha
restart: always
depends_on:
- haproxy
Expand All @@ -78,7 +78,7 @@ services:
- cht-net

nginx:
image: public.ecr.aws/medic/cht-nginx:4.1.0-alpha
image: 720541322708.dkr.ecr.eu-west-2.amazonaws.com/medic/cht-nginx:4.1.0-alpha
restart: always
depends_on:
- api
Expand Down

0 comments on commit 60f65be

Please sign in to comment.