Skip to content

Commit

Permalink
Merge pull request #3 from RealEskalate/deployment
Browse files Browse the repository at this point in the history
Deployment
  • Loading branch information
blenassefa2 authored Apr 23, 2024
2 parents b19248f + 31e4b99 commit 746f061
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to App Engine

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2


- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true

- name: Configure gcloud CLI
run: gcloud config set project ${{ secrets.GCP_PROJECT_ID }}

- name: Deploy to App Engine
run: gcloud app deploy app.yaml --quiet --version $GITHUB_SHA
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1 change: 1 addition & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
runtime: nodejs18
17 changes: 17 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--tag=gcr.io/$PROJECT_ID/docker:latest'
- '--file=Dockerfile'
- '.'
id: 'base'

options:
logging: CLOUD_LOGGING_ONLY

images:
- 'gcr.io/$PROJECT_ID/docker:latest'

timeout: 1200s

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"gcp-build": "yarn install && yarn build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
Expand Down

0 comments on commit 746f061

Please sign in to comment.