Skip to content

Commit

Permalink
handle gcp key in base64
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinaenache committed Jun 21, 2024
1 parent 418b254 commit 36bb45c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg GCP_KEY ${{secrets.GCP_KEY}} .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg="GCP_KEY=${{secrets.GCP_KEY}}" .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .

RUN pip install --no-cache-dir -r requirements.txt

RUN touch /app/key.json && echo $GCP_KEY > /app/key.json
RUN touch /app/key.json && echo $GCP_KEY | base64 --decode >> /app/key.json

EXPOSE 8000

Expand Down

0 comments on commit 36bb45c

Please sign in to comment.