Update domain to use EU region #441
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy to GCP | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-deploy: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
# Add "id-token" with the intended permissions. | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: "auth" | |
name: "Authenticate to Google Cloud" | |
uses: "google-github-actions/auth@v2" | |
with: | |
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDED }} | |
service_account: ${{ secrets.GCP_SA_EMAIL }} | |
- name: Setup gcloud environment | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: Google cloud info | |
run: gcloud info | |
- name: Setup docker | |
run: gcloud auth configure-docker | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
cache: "maven" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: Ktlint | |
run: ./mvnw -B ktlint:check | |
- run: npm ci | |
- name: Eslint / prettier | |
run: npm run lint | |
- name: Full build | |
run: ./mvnw -B package | |
- name: Build and Deploy | |
run: ./mvnw -B compile jib:build -Pfrontend -Dnpm.ci.skip -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday -Djib.to.tags=${{ github.sha }} --file pom.xml | |
- name: Build and Deploy Development version | |
run: ./mvnw -B compile jib:build -Pdevelop,frontend -Dnpm.ci.skip -Dnpm.skip -Djib.container.environment=SPRING_PROFILES_ACTIVE=develop -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday-develop -Djib.to.tags=${{ github.sha }} --file pom.xml |