From ae21417be775ffeedca661ffaea0f0bed257e307 Mon Sep 17 00:00:00 2001 From: soberbat Date: Tue, 11 Jun 2024 21:39:02 +0200 Subject: [PATCH] updated yaml --- .dockerignore | 0 .env | 0 .eslintrc.js | 0 .github/workflows/deploy.yaml | 52 +++++++++---------- .gitignore | 0 .prettierrc | 0 Dockerfile | 0 README.md | 0 nest-cli.json | 0 package-lock.json | 0 package.json | 0 .../20240118154150_clean/migration.sql | 0 .../migration.sql | 0 prisma/migrations/migration_lock.toml | 0 prisma/schema.prisma | 0 src/app.controller.spec.ts | 0 src/app.controller.ts | 0 src/app.module.ts | 0 src/app.service.ts | 0 src/auth/auth.controller.ts | 0 src/auth/auth.module.ts | 0 src/auth/auth.service.ts | 0 src/config/sessionConfig.ts | 0 src/database/database.module.ts | 0 src/database/database.service.spec.ts | 0 src/database/database.service.ts | 0 src/employee/employee.controller.ts | 0 src/employee/employee.module.ts | 0 src/employee/employee.service.ts | 0 src/express.session.d.ts | 0 src/main.ts | 0 src/project/project.controller.ts | 0 src/project/project.module.ts | 0 src/project/project.service.ts | 0 src/tasks/tasks.controller.ts | 0 src/tasks/tasks.module.ts | 0 src/tasks/tasks.service.ts | 0 src/team/team.controller.ts | 0 src/team/team.module.ts | 0 src/team/team.service.ts | 0 test/app.e2e-spec.ts | 0 test/jest-e2e.json | 0 tsconfig.build.json | 0 tsconfig.json | 0 44 files changed, 26 insertions(+), 26 deletions(-) mode change 100644 => 100755 .dockerignore mode change 100644 => 100755 .env mode change 100644 => 100755 .eslintrc.js mode change 100644 => 100755 .github/workflows/deploy.yaml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .prettierrc mode change 100644 => 100755 Dockerfile mode change 100644 => 100755 README.md mode change 100644 => 100755 nest-cli.json mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 prisma/migrations/20240118154150_clean/migration.sql mode change 100644 => 100755 prisma/migrations/20240119212433_cascade_added/migration.sql mode change 100644 => 100755 prisma/migrations/migration_lock.toml mode change 100644 => 100755 prisma/schema.prisma mode change 100644 => 100755 src/app.controller.spec.ts mode change 100644 => 100755 src/app.controller.ts mode change 100644 => 100755 src/app.module.ts mode change 100644 => 100755 src/app.service.ts mode change 100644 => 100755 src/auth/auth.controller.ts mode change 100644 => 100755 src/auth/auth.module.ts mode change 100644 => 100755 src/auth/auth.service.ts mode change 100644 => 100755 src/config/sessionConfig.ts mode change 100644 => 100755 src/database/database.module.ts mode change 100644 => 100755 src/database/database.service.spec.ts mode change 100644 => 100755 src/database/database.service.ts mode change 100644 => 100755 src/employee/employee.controller.ts mode change 100644 => 100755 src/employee/employee.module.ts mode change 100644 => 100755 src/employee/employee.service.ts mode change 100644 => 100755 src/express.session.d.ts mode change 100644 => 100755 src/main.ts mode change 100644 => 100755 src/project/project.controller.ts mode change 100644 => 100755 src/project/project.module.ts mode change 100644 => 100755 src/project/project.service.ts mode change 100644 => 100755 src/tasks/tasks.controller.ts mode change 100644 => 100755 src/tasks/tasks.module.ts mode change 100644 => 100755 src/tasks/tasks.service.ts mode change 100644 => 100755 src/team/team.controller.ts mode change 100644 => 100755 src/team/team.module.ts mode change 100644 => 100755 src/team/team.service.ts mode change 100644 => 100755 test/app.e2e-spec.ts mode change 100644 => 100755 test/jest-e2e.json mode change 100644 => 100755 tsconfig.build.json mode change 100644 => 100755 tsconfig.json diff --git a/.dockerignore b/.dockerignore old mode 100644 new mode 100755 diff --git a/.env b/.env old mode 100644 new mode 100755 diff --git a/.eslintrc.js b/.eslintrc.js old mode 100644 new mode 100755 diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml old mode 100644 new mode 100755 index 4336a7a..acc2c59 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.prettierrc b/.prettierrc old mode 100644 new mode 100755 diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/nest-cli.json b/nest-cli.json old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/prisma/migrations/20240118154150_clean/migration.sql b/prisma/migrations/20240118154150_clean/migration.sql old mode 100644 new mode 100755 diff --git a/prisma/migrations/20240119212433_cascade_added/migration.sql b/prisma/migrations/20240119212433_cascade_added/migration.sql old mode 100644 new mode 100755 diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml old mode 100644 new mode 100755 diff --git a/prisma/schema.prisma b/prisma/schema.prisma old mode 100644 new mode 100755 diff --git a/src/app.controller.spec.ts b/src/app.controller.spec.ts old mode 100644 new mode 100755 diff --git a/src/app.controller.ts b/src/app.controller.ts old mode 100644 new mode 100755 diff --git a/src/app.module.ts b/src/app.module.ts old mode 100644 new mode 100755 diff --git a/src/app.service.ts b/src/app.service.ts old mode 100644 new mode 100755 diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts old mode 100644 new mode 100755 diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts old mode 100644 new mode 100755 diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts old mode 100644 new mode 100755 diff --git a/src/config/sessionConfig.ts b/src/config/sessionConfig.ts old mode 100644 new mode 100755 diff --git a/src/database/database.module.ts b/src/database/database.module.ts old mode 100644 new mode 100755 diff --git a/src/database/database.service.spec.ts b/src/database/database.service.spec.ts old mode 100644 new mode 100755 diff --git a/src/database/database.service.ts b/src/database/database.service.ts old mode 100644 new mode 100755 diff --git a/src/employee/employee.controller.ts b/src/employee/employee.controller.ts old mode 100644 new mode 100755 diff --git a/src/employee/employee.module.ts b/src/employee/employee.module.ts old mode 100644 new mode 100755 diff --git a/src/employee/employee.service.ts b/src/employee/employee.service.ts old mode 100644 new mode 100755 diff --git a/src/express.session.d.ts b/src/express.session.d.ts old mode 100644 new mode 100755 diff --git a/src/main.ts b/src/main.ts old mode 100644 new mode 100755 diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts old mode 100644 new mode 100755 diff --git a/src/project/project.module.ts b/src/project/project.module.ts old mode 100644 new mode 100755 diff --git a/src/project/project.service.ts b/src/project/project.service.ts old mode 100644 new mode 100755 diff --git a/src/tasks/tasks.controller.ts b/src/tasks/tasks.controller.ts old mode 100644 new mode 100755 diff --git a/src/tasks/tasks.module.ts b/src/tasks/tasks.module.ts old mode 100644 new mode 100755 diff --git a/src/tasks/tasks.service.ts b/src/tasks/tasks.service.ts old mode 100644 new mode 100755 diff --git a/src/team/team.controller.ts b/src/team/team.controller.ts old mode 100644 new mode 100755 diff --git a/src/team/team.module.ts b/src/team/team.module.ts old mode 100644 new mode 100755 diff --git a/src/team/team.service.ts b/src/team/team.service.ts old mode 100644 new mode 100755 diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts old mode 100644 new mode 100755 diff --git a/test/jest-e2e.json b/test/jest-e2e.json old mode 100644 new mode 100755 diff --git a/tsconfig.build.json b/tsconfig.build.json old mode 100644 new mode 100755 diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755