From 333a9e47447f8e0dbbedcb2bcc495e9b628a1df2 Mon Sep 17 00:00:00 2001 From: Jordan Laser Date: Fri, 20 Sep 2024 09:39:21 -0600 Subject: [PATCH] fix 3 --- .github/workflows/build_test_docker_x86.yaml | 2 +- research_datastream/terraform/test/docker_loginNpush.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test_docker_x86.yaml b/.github/workflows/build_test_docker_x86.yaml index e9de389c..b7c6dbf1 100644 --- a/.github/workflows/build_test_docker_x86.yaml +++ b/.github/workflows/build_test_docker_x86.yaml @@ -46,7 +46,7 @@ jobs: run: | aws configure set aws_access_key_id ${{ secrets.aws_access_key_id }} aws configure set aws_secret_access_key ${{ secrets.aws_secret_access_key }} - aws configure set region us-east-1 3 + aws configure set region us-east-1 - name: Install packages for datastream run: | diff --git a/research_datastream/terraform/test/docker_loginNpush.sh b/research_datastream/terraform/test/docker_loginNpush.sh index d4fd5e31..9daf0b4a 100755 --- a/research_datastream/terraform/test/docker_loginNpush.sh +++ b/research_datastream/terraform/test/docker_loginNpush.sh @@ -1,5 +1,8 @@ #!/bin/bash +DOCKERHUB_TOKEN="$(aws secretsmanager get-secret-value --secret-id docker_awiciroh_creds --region us-east-1 --query SecretString --output text | jq -r .DOCKERHUB_TOKEN)" +DOCKERHUB_USERNAME="awiciroh" + if [ "$(echo $DOCKERHUB_TOKEN | docker login -u $DOCKERHUB_USERNAME --password-stdin)" == "Login Succeeded" ]; then echo "Docker login successful" ./scripts/docker_builds.sh -p