Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epo 8491 #26

Merged
merged 6 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/develop-pr-gae.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,40 @@ on:
- 'develop'

jobs:
build-image-no-deploy:
name: 'Build Image Without Deploy - No Preview'
runs-on: ubuntu-latest
if: ${{ (github.event.action != 'closed') && (startsWith(github.head_ref, 'preview') == false) }}

# Checkout the repository to the GitHub Actions runner
steps:
- name: Checkout
uses: actions/checkout@v2

# gcloud CLI setup
- name: Login to GCP
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.DEV_SA_KEY }}
project_id: skyviewer
export_default_credentials: true

- name: Get secret to create .env
run: gcloud secrets versions access latest --secret=investigations-api-env > ./api/.env

- name: Setup docker build
uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true

- name: Build client, but don't deploy
run: docker build .

build-push-deploy:
name: 'Build and Deploy PR Preview to Development'
runs-on: ubuntu-latest
if: ${{ (github.event.action != 'closed') && (startsWith(github.head_ref, 'preview') == false) }}
if: ${{ (github.event.action != 'closed') && (startsWith(github.head_ref, 'preview') == true) }}

# Checkout the repository to the GitHub Actions runner
steps:
Expand Down
Loading