From 81d9e9f9b9637745ebfdf0c55dbf7326db95589d Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:43:42 +0200 Subject: [PATCH 01/12] feat: extra publish --- .github/workflows/publish-extra.yaml | 151 +++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 .github/workflows/publish-extra.yaml diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml new file mode 100644 index 000000000..1d383e462 --- /dev/null +++ b/.github/workflows/publish-extra.yaml @@ -0,0 +1,151 @@ +# +# Copyright SecureKey Technologies Inc. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +name: release-extra +on: + pull_request: +jobs: + mock-webhook: + name: Publish image + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + +# - name: Login to Github Container Registry +# uses: docker/login-action@v3 +# with: +# registry: ghcr.io +# username: ${{ secrets.CR_USER }} +# password: ${{ secrets.CR_PAT }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./images/mocks/webhook/Dockerfile + platforms: linux/amd64 + build-args: | + ALPINE_VER=3.18 + GO_VER=1.21 + push: false + tags: | + ghcr.io/trustbloc/mock-webhook:latest + mock-login-consent: + name: Publish image + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # - name: Login to Github Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ secrets.CR_USER }} + # password: ${{ secrets.CR_PAT }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./images/mocks/loginconsent/Dockerfile + platforms: linux/amd64 + build-args: | + ALPINE_VER=3.18 + GO_VER=1.21 + push: false + tags: | + ghcr.io/trustbloc/mock-login-consent:latest + mock-trustregistry: + name: Publish image + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # - name: Login to Github Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ secrets.CR_USER }} + # password: ${{ secrets.CR_PAT }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./images/mocks/trustregistry/Dockerfile + platforms: linux/amd64 + build-args: | + ALPINE_VER=3.18 + GO_VER=1.21 + push: false + tags: | + ghcr.io/trustbloc/mock-trustregistry-docker:latest + mock-attestation: + name: Publish image + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # - name: Login to Github Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ secrets.CR_USER }} + # password: ${{ secrets.CR_PAT }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./images/mocks/attestation/Dockerfile + platforms: linux/amd64 + build-args: | + ALPINE_VER=3.18 + GO_VER=1.21 + push: false + tags: | + ghcr.io/trustbloc/mock-attestation:latest + + mock-cognito-auth: + name: Publish image + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # - name: Login to Github Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ secrets.CR_USER }} + # password: ${{ secrets.CR_PAT }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./images/mocks/cognito-auth/Dockerfile + platforms: linux/amd64 + build-args: | + ALPINE_VER=3.18 + GO_VER=1.21 + push: false + tags: | + ghcr.io/trustbloc/mock-cognito-auth:latest \ No newline at end of file From aa3936036795a0991266fabb49d8bb3a604d3286 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:45:29 +0200 Subject: [PATCH 02/12] feat: go img --- .github/workflows/publish-extra.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 1d383e462..9048d3d5f 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -31,6 +31,7 @@ jobs: file: ./images/mocks/webhook/Dockerfile platforms: linux/amd64 build-args: | + GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 push: false @@ -59,6 +60,7 @@ jobs: file: ./images/mocks/loginconsent/Dockerfile platforms: linux/amd64 build-args: | + GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 push: false @@ -87,6 +89,7 @@ jobs: file: ./images/mocks/trustregistry/Dockerfile platforms: linux/amd64 build-args: | + GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 push: false @@ -115,6 +118,7 @@ jobs: file: ./images/mocks/attestation/Dockerfile platforms: linux/amd64 build-args: | + GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 push: false @@ -144,6 +148,7 @@ jobs: file: ./images/mocks/cognito-auth/Dockerfile platforms: linux/amd64 build-args: | + GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 push: false From 5d883eab0e450c5343222afde373e631e9089dcf Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:47:42 +0200 Subject: [PATCH 03/12] fix: alpine --- .github/workflows/publish-extra.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 9048d3d5f..0a8f25f9b 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -34,6 +34,7 @@ jobs: GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 + ALPINE_IMAGE=alpine push: false tags: | ghcr.io/trustbloc/mock-webhook:latest @@ -63,6 +64,7 @@ jobs: GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 + ALPINE_IMAGE=alpine push: false tags: | ghcr.io/trustbloc/mock-login-consent:latest @@ -92,6 +94,7 @@ jobs: GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 + ALPINE_IMAGE=alpine push: false tags: | ghcr.io/trustbloc/mock-trustregistry-docker:latest @@ -121,6 +124,7 @@ jobs: GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 + ALPINE_IMAGE=alpine push: false tags: | ghcr.io/trustbloc/mock-attestation:latest @@ -151,6 +155,7 @@ jobs: GO_IMAGE=golang ALPINE_VER=3.18 GO_VER=1.21 + ALPINE_IMAGE=alpine push: false tags: | ghcr.io/trustbloc/mock-cognito-auth:latest \ No newline at end of file From 44171935609c0bcd9f3e273b9be60123aa89294d Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:48:57 +0200 Subject: [PATCH 04/12] fix: webhook --- .github/workflows/publish-extra.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 0a8f25f9b..3d44744e8 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -24,6 +24,13 @@ jobs: # username: ${{ secrets.CR_USER }} # password: ${{ secrets.CR_PAT }} + - name: Setup Go 1.21 + uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - run: make sample-webhook + - name: Build and Push uses: docker/build-push-action@v5 with: From 39a6ac294143a87b17fbbfe624d8528544d51763 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:52:07 +0200 Subject: [PATCH 05/12] fix: ctx --- .github/workflows/publish-extra.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 3d44744e8..c3e27ae75 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -9,7 +9,6 @@ on: pull_request: jobs: mock-webhook: - name: Publish image runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -46,7 +45,6 @@ jobs: tags: | ghcr.io/trustbloc/mock-webhook:latest mock-login-consent: - name: Publish image runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -64,7 +62,7 @@ jobs: - name: Build and Push uses: docker/build-push-action@v5 with: - context: . + context: test/bdd/loginconsent file: ./images/mocks/loginconsent/Dockerfile platforms: linux/amd64 build-args: | From aa6751dc360ec8039a44830a9fc769a060560037 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:54:25 +0200 Subject: [PATCH 06/12] fix: contexts --- .github/workflows/publish-extra.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index c3e27ae75..1edcfc5a0 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -74,7 +74,6 @@ jobs: tags: | ghcr.io/trustbloc/mock-login-consent:latest mock-trustregistry: - name: Publish image runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -92,7 +91,7 @@ jobs: - name: Build and Push uses: docker/build-push-action@v5 with: - context: . + context: test/bdd/trustregistry file: ./images/mocks/trustregistry/Dockerfile platforms: linux/amd64 build-args: | @@ -104,7 +103,6 @@ jobs: tags: | ghcr.io/trustbloc/mock-trustregistry-docker:latest mock-attestation: - name: Publish image runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -122,7 +120,7 @@ jobs: - name: Build and Push uses: docker/build-push-action@v5 with: - context: . + context: test/bdd/attestation file: ./images/mocks/attestation/Dockerfile platforms: linux/amd64 build-args: | @@ -143,6 +141,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Setup Go 1.21 + uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - run: sample-cognito-auth + # - name: Login to Github Container Registry # uses: docker/login-action@v3 # with: From 6e60dbe468ba8be5e1ee72dd861a884a0e6a41c9 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 18:57:43 +0200 Subject: [PATCH 07/12] fix: cognito --- .github/workflows/publish-extra.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 1edcfc5a0..cbb9c4bba 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -133,7 +133,6 @@ jobs: ghcr.io/trustbloc/mock-attestation:latest mock-cognito-auth: - name: Publish image runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -146,7 +145,7 @@ jobs: with: go-version: '1.21' - - run: sample-cognito-auth + - run: make sample-cognito-auth # - name: Login to Github Container Registry # uses: docker/login-action@v3 From cb61bd5a7f0665f2162d68381af5203e613e67ec Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 19:02:27 +0200 Subject: [PATCH 08/12] feat: additional label --- .github/workflows/publish-extra.yaml | 35 ++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index cbb9c4bba..9b84402d7 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -16,6 +16,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set ENV vars + run: | + TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) + echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV + # - name: Login to Github Container Registry # uses: docker/login-action@v3 # with: @@ -44,6 +49,7 @@ jobs: push: false tags: | ghcr.io/trustbloc/mock-webhook:latest + ghcr.io/trustbloc/mock-webhook:${{ env.IMAGE_TAG }}-latest mock-login-consent: runs-on: ubuntu-latest timeout-minutes: 45 @@ -52,6 +58,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set ENV vars + run: | + TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) + echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV + # - name: Login to Github Container Registry # uses: docker/login-action@v3 # with: @@ -73,6 +84,8 @@ jobs: push: false tags: | ghcr.io/trustbloc/mock-login-consent:latest + ghcr.io/trustbloc/mock-login-consent:${{ env.IMAGE_TAG }}-latest + mock-trustregistry: runs-on: ubuntu-latest timeout-minutes: 45 @@ -81,6 +94,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set ENV vars + run: | + TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) + echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV + # - name: Login to Github Container Registry # uses: docker/login-action@v3 # with: @@ -101,7 +119,8 @@ jobs: ALPINE_IMAGE=alpine push: false tags: | - ghcr.io/trustbloc/mock-trustregistry-docker:latest + ghcr.io/trustbloc/mock-trustregistry:latest + ghcr.io/trustbloc/mock-trustregistry:${{ env.IMAGE_TAG }}-latest mock-attestation: runs-on: ubuntu-latest timeout-minutes: 45 @@ -110,6 +129,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set ENV vars + run: | + TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) + echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV + # - name: Login to Github Container Registry # uses: docker/login-action@v3 # with: @@ -131,6 +155,7 @@ jobs: push: false tags: | ghcr.io/trustbloc/mock-attestation:latest + ghcr.io/trustbloc/mock-attestation:${{ env.IMAGE_TAG }}-latest mock-cognito-auth: runs-on: ubuntu-latest @@ -140,6 +165,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set ENV vars + run: | + TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) + echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV + - name: Setup Go 1.21 uses: actions/setup-go@v5 with: @@ -167,4 +197,5 @@ jobs: ALPINE_IMAGE=alpine push: false tags: | - ghcr.io/trustbloc/mock-cognito-auth:latest \ No newline at end of file + ghcr.io/trustbloc/mock-cognito-auth:latest + ghcr.io/trustbloc/mock-cognito-auth:${{ env.IMAGE_TAG }}-latest \ No newline at end of file From 76f9a09709b779d10a146b371f9257b0909a1cec Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 19:07:27 +0200 Subject: [PATCH 09/12] feat: add tags --- .github/workflows/publish-extra.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 9b84402d7..4035fc8ee 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -13,6 +13,9 @@ jobs: timeout-minutes: 45 steps: - uses: actions/checkout@v4 + with: + fetch-tags: true + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -55,6 +58,8 @@ jobs: timeout-minutes: 45 steps: - uses: actions/checkout@v4 + with: + fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -91,6 +96,8 @@ jobs: timeout-minutes: 45 steps: - uses: actions/checkout@v4 + with: + fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -126,6 +133,8 @@ jobs: timeout-minutes: 45 steps: - uses: actions/checkout@v4 + with: + fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -162,6 +171,8 @@ jobs: timeout-minutes: 45 steps: - uses: actions/checkout@v4 + with: + fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 From 913283d6e303b973a4721f8f54d8d0ca06150bb7 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 19:11:36 +0200 Subject: [PATCH 10/12] feat: fetch --- .github/workflows/publish-extra.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 4035fc8ee..0ec822e4a 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -14,6 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Set up Docker Buildx From 20bfd499a28834b1523d66896ef7f025fa6a84a1 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sat, 11 May 2024 19:12:50 +0200 Subject: [PATCH 11/12] fix: fetch --- .github/workflows/publish-extra.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-extra.yaml index 0ec822e4a..f535fd290 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-extra.yaml @@ -60,6 +60,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -98,6 +99,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -135,6 +137,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -173,6 +176,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 From 1748ea46320dc8f8adde1a93939bade742187032 Mon Sep 17 00:00:00 2001 From: Stas Dm Date: Sun, 12 May 2024 20:31:47 +0200 Subject: [PATCH 12/12] feat: publish mocks --- ...{publish-extra.yaml => publish-mocks.yaml} | 66 ++++++++++--------- 1 file changed, 34 insertions(+), 32 deletions(-) rename .github/workflows/{publish-extra.yaml => publish-mocks.yaml} (79%) diff --git a/.github/workflows/publish-extra.yaml b/.github/workflows/publish-mocks.yaml similarity index 79% rename from .github/workflows/publish-extra.yaml rename to .github/workflows/publish-mocks.yaml index f535fd290..c39f7b981 100644 --- a/.github/workflows/publish-extra.yaml +++ b/.github/workflows/publish-mocks.yaml @@ -4,9 +4,11 @@ # SPDX-License-Identifier: Apache-2.0 # -name: release-extra +name: mocks on: - pull_request: + push: + branches: + - main jobs: mock-webhook: runs-on: ubuntu-latest @@ -25,12 +27,12 @@ jobs: TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV -# - name: Login to Github Container Registry -# uses: docker/login-action@v3 -# with: -# registry: ghcr.io -# username: ${{ secrets.CR_USER }} -# password: ${{ secrets.CR_PAT }} + - name: Login to Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - name: Setup Go 1.21 uses: actions/setup-go@v5 @@ -70,12 +72,12 @@ jobs: TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV - # - name: Login to Github Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ secrets.CR_USER }} - # password: ${{ secrets.CR_PAT }} + - name: Login to Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - name: Build and Push uses: docker/build-push-action@v5 @@ -109,12 +111,12 @@ jobs: TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV - # - name: Login to Github Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ secrets.CR_USER }} - # password: ${{ secrets.CR_PAT }} + - name: Login to Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - name: Build and Push uses: docker/build-push-action@v5 @@ -147,12 +149,12 @@ jobs: TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`) echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV - # - name: Login to Github Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ secrets.CR_USER }} - # password: ${{ secrets.CR_PAT }} + - name: Login to Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - name: Build and Push uses: docker/build-push-action@v5 @@ -193,12 +195,12 @@ jobs: - run: make sample-cognito-auth - # - name: Login to Github Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ secrets.CR_USER }} - # password: ${{ secrets.CR_PAT }} + - name: Login to Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - name: Build and Push uses: docker/build-push-action@v5