Skip to content

Commit

Permalink
Changed the AWS_ACCOUNT_ID variable to include secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ougabriel committed Nov 3, 2024
1 parent 8d0257c commit bfba733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes/update-k8s-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ DEPLOYMENT_FILE="./kubernetes/deployment.yaml"

# Determine the environment based on the branch
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
ECR_IMAGE="${{AWS_ACCOUNT_ID}}.dkr.ecr.eu-west-2.amazonaws.com/gabapprepoprod:latest"
ECR_IMAGE="${{secret.AWS_ACCOUNT_ID}}.dkr.ecr.eu-west-2.amazonaws.com/gabapprepoprod:latest"
echo "Deploying to production environment..."
else
ECR_IMAGE="${{AWS_ACCOUNT_ID}}.dkr.ecr.eu-west-2.amazonaws.com/gabapprepodev:latest"
ECR_IMAGE="${{secret.AWS_ACCOUNT_ID}}.dkr.ecr.eu-west-2.amazonaws.com/gabapprepodev:latest"
echo "Deploying to development environment..."
fi

Expand Down

0 comments on commit bfba733

Please sign in to comment.