Skip to content

Commit

Permalink
Try move the inclusion of google app creds to release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Feb 6, 2024
1 parent 005e5f4 commit a652129
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:

# Build and push new docker image, skip for manual redeploy other than 'latest'
- name: Build and push Docker image
with:
secrets: |
googlecloud_credentials_base64=${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}
run: |
dotnet publish --os linux --arch x64 -c Release -p:ContainerRepository=${{ env.image_repository_name }} -p:ContainerRegistry=ghcr.io -p:ContainerImageTags=${{ env.TAG_NAME }} -p:ContainerPort=80
Expand Down Expand Up @@ -167,6 +164,7 @@ jobs:
export APP_ID=$(docker compose run --entrypoint "id -u" --rm app)
docker compose run --entrypoint "chown $APP_ID:$APP_ID /app/App_Data" --user root --rm app
docker compose up app-migration --exit-code-from app-migration
docker compose run --entrypoint "echo '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}' | base64 -d > /app/googlecloud-credentials.json && chown $APP_ID:$APP_ID /app/googlecloud-credentials.json" --user root --rm app
# Deploy Docker image with your application using `docker compose up` remotely
- name: remote docker-compose up via ssh
Expand Down

0 comments on commit a652129

Please sign in to comment.