From af71a44e93f1bc8e82621dce83127c2e22d1b81e Mon Sep 17 00:00:00 2001 From: Anais Date: Sat, 20 Jan 2024 17:36:31 +0100 Subject: [PATCH] test secret values #3 --- .github/workflows/infrastructure.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/infrastructure.yml b/.github/workflows/infrastructure.yml index 9f0b0a8..7dbd33c 100644 --- a/.github/workflows/infrastructure.yml +++ b/.github/workflows/infrastructure.yml @@ -39,6 +39,7 @@ jobs: run: | declare -A keys keys["POSTGRESQL_FQDN"]=${{ steps.terraform.outputs.POSTGRESQL_FQDN }} + keys["REGISTRY"]=${{ steps.terraform.outputs.REGISTRY }} public_key_info=$(curl -H "Authorization: token $ACCESS_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$ORG_NAME/$REPO_NAME/actions/secrets/public-key) public_key_value=$(echo "$public_key_info" | jq -r '.key') @@ -49,5 +50,5 @@ jobs: curl -L -X PUT -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $ACCESS_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/$ORG_NAME/$REPO_NAME/actions/secrets/$credential -d @body.json done - test=${{ secrets.POSTGRESQL_FQDN }} + test=${{ secrets.REGISTRY }} echo $test \ No newline at end of file