Skip to content

Commit

Permalink
fix: update env
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslashf committed Sep 6, 2024
1 parent ed9fb94 commit 21bcb58
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,12 @@ jobs:
export REGION=${{ env.REGION }}
export PROJECT_ID=${{ env.PROJECT_ID }}
export GITHUB_SHA=${{ github.sha }}
export GCP_SA_KEY="$GCP_SA_KEY"
# Create a temporary file for the GCP service account key
echo "$GCP_SA_KEY" > /tmp/gcp-sa-key.json
# Authenticate with Google Cloud
gcloud auth activate-service-account --key-file=/tmp/gcp-sa-key.json
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev
export GCP_SA_KEY="${{ env.GCP_SA_KEY }}"
# Update docker-compose.yml to include GCP_SA_KEY
sed -i "s|GCP_SA_KEY=.*|GCP_SA_KEY=$GCP_SA_KEY|g" docker-compose.yml
docker-compose pull
docker-compose down
docker-compose up -d
rm /tmp/gcp-sa-key.json
'

0 comments on commit 21bcb58

Please sign in to comment.