From 410621665236dde2222aa02392f91037af36fc60 Mon Sep 17 00:00:00 2001 From: Kevin Scholz Date: Thu, 19 May 2022 16:06:51 +0200 Subject: [PATCH 1/3] :recycle: Add Docker config test --- .github/workflows/test-setup-action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-setup-action.yml b/.github/workflows/test-setup-action.yml index 7a79fe8..83d82fc 100644 --- a/.github/workflows/test-setup-action.yml +++ b/.github/workflows/test-setup-action.yml @@ -69,5 +69,12 @@ jobs: - name: Validate successful login run: setops project | grep "NAME" + - name: Validate Docker config was updated + run: | + grep '"api.setops.co": "setops"' ~/.docker/config.json + + - name: Validate Credentials Helper is present + run: docker-credential-setops -h + - name: setops logout run: setops logout From 29865e8f0db1ab53befd6e2c7b4d7dc9c0e17f84 Mon Sep 17 00:00:00 2001 From: Kevin Scholz Date: Thu, 19 May 2022 17:05:54 +0200 Subject: [PATCH 2/3] :recycle: debug docker config --- .github/workflows/test-setup-action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-setup-action.yml b/.github/workflows/test-setup-action.yml index 83d82fc..0c5b3b3 100644 --- a/.github/workflows/test-setup-action.yml +++ b/.github/workflows/test-setup-action.yml @@ -71,6 +71,7 @@ jobs: - name: Validate Docker config was updated run: | + cat ~/.docker/config.json grep '"api.setops.co": "setops"' ~/.docker/config.json - name: Validate Credentials Helper is present From eed81859da89171e1802d9049d63cd50e45cfb55 Mon Sep 17 00:00:00 2001 From: Kevin Scholz Date: Thu, 19 May 2022 17:08:04 +0200 Subject: [PATCH 3/3] :bug: fix test --- .github/workflows/test-setup-action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-setup-action.yml b/.github/workflows/test-setup-action.yml index 0c5b3b3..b7b659f 100644 --- a/.github/workflows/test-setup-action.yml +++ b/.github/workflows/test-setup-action.yml @@ -71,8 +71,7 @@ jobs: - name: Validate Docker config was updated run: | - cat ~/.docker/config.json - grep '"api.setops.co": "setops"' ~/.docker/config.json + grep '"dev.setops.co": "setops-dev"' ~/.docker/config.json - name: Validate Credentials Helper is present run: docker-credential-setops -h