-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c53dd
commit bc96070
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy JHipster Lite | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- gcp | ||
jobs: | ||
pipeline: | ||
name: jhipster-lite deployment | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
|
||
steps: | ||
- name: 'Setup: checkout project' | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Google Cloud | ||
- name: Authenticate to Google Cloud | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: ${{ secrets.GCP_SA_KEY }} | ||
|
||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
version: '418.0.0' | ||
project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
|
||
# Authenticate and push docker image to Artifact registry | ||
- name: Build and Push Docker Image | ||
run: >- | ||
gcloud auth configure-docker europe-west9-docker.pkg.dev && | ||
docker build -t europe-west9-docker.pkg.dev/jhipster-lite/jhipster-lite/jhipster-lite:${GITHUB_SHA} . && | ||
docker push europe-west9-docker.pkg.dev/jhipster-lite/jhipster-lite/jhipster-lite:${GITHUB_SHA} | ||
# Deploy to App Engine Flexible | ||
- name: Deploy | ||
# run: VERSION_TAG=${GITHUB_REF:10} && gcloud app deploy --image-url europe-west9-docker.pkg.dev/jhipster-lite/jhipster-lite/jhipster-lite:${GITHUB_SHA} --version ${VERSION_TAG//./-} | ||
run: gcloud app deploy --image-url europe-west9-docker.pkg.dev/jhipster-lite/jhipster-lite/jhipster-lite:${GITHUB_SHA} --version gcp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
application: | ||
forced-project-folder: /tmp/jhlite | ||
mongock: | ||
migration-scan-package: tech.jhipster.lite |