From 80f7c6204e82756f92c4ffe656e0e3b3b469a145 Mon Sep 17 00:00:00 2001 From: Dustin Deus Date: Wed, 14 Feb 2024 18:21:18 +0100 Subject: [PATCH] chore: use private docker credentials (#527) --- .github/workflows/controlplane-ci.yaml | 6 ++++++ .github/workflows/image-release.yml | 7 +++++++ .github/workflows/images-ci.yaml | 7 +++++++ .github/workflows/router-ci.yaml | 3 +++ 4 files changed, 23 insertions(+) diff --git a/.github/workflows/controlplane-ci.yaml b/.github/workflows/controlplane-ci.yaml index d8d80b6891..8ddf191a04 100644 --- a/.github/workflows/controlplane-ci.yaml +++ b/.github/workflows/controlplane-ci.yaml @@ -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: diff --git a/.github/workflows/image-release.yml b/.github/workflows/image-release.yml index 4d5312d849..13f6172172 100644 --- a/.github/workflows/image-release.yml +++ b/.github/workflows/image-release.yml @@ -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: diff --git a/.github/workflows/images-ci.yaml b/.github/workflows/images-ci.yaml index 8e125466dd..6663e52adc 100644 --- a/.github/workflows/images-ci.yaml +++ b/.github/workflows/images-ci.yaml @@ -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: diff --git a/.github/workflows/router-ci.yaml b/.github/workflows/router-ci.yaml index 9be0156be5..e07a59e757 100644 --- a/.github/workflows/router-ci.yaml +++ b/.github/workflows/router-ci.yaml @@ -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: