Skip to content

Commit

Permalink
updated yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
soberbat committed Jun 11, 2024
1 parent a6cb526 commit ae21417
Show file tree
Hide file tree
Showing 44 changed files with 26 additions and 26 deletions.
Empty file modified .dockerignore
100644 → 100755
Empty file.
Empty file modified .env
100644 → 100755
Empty file.
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
52 changes: 26 additions & 26 deletions .github/workflows/deploy.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@ name: Push Deployment
on:
push:
branches:
- "master"
- 'master'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: 'actions/checkout@v4'
- name: Code Checkout
uses: 'actions/checkout@v4'

- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
export_default_credentials: true

- name: Build and Push
env:
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
REPO: ${{ secrets.REPO }}
run: |
gcloud auth configure-docker europe-west1-docker.pkg.dev
docker build -t europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest .
docker push europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest
- name: Build and Push
env:
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
REPO: ${{ secrets.REPO }}
run: |
gcloud auth configure-docker europe-west1-docker.pkg.dev
docker build -t europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest .
docker push europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest
- name: Deploy
env:
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
REPO: ${{ secrets.REPO }}
run: |
gcloud run deploy task-manager \
--region europe-west1 \
--image=europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp \
--allow-unauthenticated
- name: Deploy
env:
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
REPO: ${{ secrets.REPO }}
run: |
gcloud run deploy task-manager \
--region europe-west1 \
--image=europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp \
--allow-unauthenticated
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .prettierrc
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified nest-cli.json
100644 → 100755
Empty file.
Empty file modified package-lock.json
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified prisma/migrations/20240118154150_clean/migration.sql
100644 → 100755
Empty file.
Empty file modified prisma/migrations/20240119212433_cascade_added/migration.sql
100644 → 100755
Empty file.
Empty file modified prisma/migrations/migration_lock.toml
100644 → 100755
Empty file.
Empty file modified prisma/schema.prisma
100644 → 100755
Empty file.
Empty file modified src/app.controller.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app.controller.ts
100644 → 100755
Empty file.
Empty file modified src/app.module.ts
100644 → 100755
Empty file.
Empty file modified src/app.service.ts
100644 → 100755
Empty file.
Empty file modified src/auth/auth.controller.ts
100644 → 100755
Empty file.
Empty file modified src/auth/auth.module.ts
100644 → 100755
Empty file.
Empty file modified src/auth/auth.service.ts
100644 → 100755
Empty file.
Empty file modified src/config/sessionConfig.ts
100644 → 100755
Empty file.
Empty file modified src/database/database.module.ts
100644 → 100755
Empty file.
Empty file modified src/database/database.service.spec.ts
100644 → 100755
Empty file.
Empty file modified src/database/database.service.ts
100644 → 100755
Empty file.
Empty file modified src/employee/employee.controller.ts
100644 → 100755
Empty file.
Empty file modified src/employee/employee.module.ts
100644 → 100755
Empty file.
Empty file modified src/employee/employee.service.ts
100644 → 100755
Empty file.
Empty file modified src/express.session.d.ts
100644 → 100755
Empty file.
Empty file modified src/main.ts
100644 → 100755
Empty file.
Empty file modified src/project/project.controller.ts
100644 → 100755
Empty file.
Empty file modified src/project/project.module.ts
100644 → 100755
Empty file.
Empty file modified src/project/project.service.ts
100644 → 100755
Empty file.
Empty file modified src/tasks/tasks.controller.ts
100644 → 100755
Empty file.
Empty file modified src/tasks/tasks.module.ts
100644 → 100755
Empty file.
Empty file modified src/tasks/tasks.service.ts
100644 → 100755
Empty file.
Empty file modified src/team/team.controller.ts
100644 → 100755
Empty file.
Empty file modified src/team/team.module.ts
100644 → 100755
Empty file.
Empty file modified src/team/team.service.ts
100644 → 100755
Empty file.
Empty file modified test/app.e2e-spec.ts
100644 → 100755
Empty file.
Empty file modified test/jest-e2e.json
100644 → 100755
Empty file.
Empty file modified tsconfig.build.json
100644 → 100755
Empty file.
Empty file modified tsconfig.json
100644 → 100755
Empty file.

0 comments on commit ae21417

Please sign in to comment.