Skip to content

Commit

Permalink
chore: use private docker credentials (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech authored Feb 14, 2024
1 parent e86a794 commit 80f7c62
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/controlplane-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ jobs:
redis:
# Docker Hub image
image: redis:7
credentials:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
ports:
- 6379:6379
postgres:
# Docker Hub image
image: postgres:15
credentials:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
ports:
- 5432:5432
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to Docker Container registry
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to Github Container registry
uses: docker/login-action@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/images-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to Docker Container registry
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to Github Container registry
uses: docker/login-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/router-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
redis:
# Docker Hub image
image: redis:7
credentials:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
ports:
- 6379:6379
steps:
Expand Down

0 comments on commit 80f7c62

Please sign in to comment.