From 83d9c9399cea07ec356d2d57152af32444e8d4d1 Mon Sep 17 00:00:00 2001 From: david tjokroaminoto Date: Thu, 18 Jan 2024 21:49:32 +0800 Subject: [PATCH] chore: remove old-ci --- .circleci/config.yml | 20 ---------- .github/workflows/ci-master-prod-deploy.yml | 38 ------------------ .../workflows/ci-master-staging-deploy.yml | 35 ---------------- .github/workflows/ci-pull-request-close.yml | 18 --------- .github/workflows/dependency-check.yml | 40 ------------------- .gitignore | 3 +- 6 files changed, 2 insertions(+), 152 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .github/workflows/ci-master-prod-deploy.yml delete mode 100644 .github/workflows/ci-master-staging-deploy.yml delete mode 100644 .github/workflows/ci-pull-request-close.yml delete mode 100644 .github/workflows/dependency-check.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index fa7475c..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: 2.1 - -jobs: - build: - docker: - - image: "cimg/node:18.16" - steps: - - checkout - - run: - name: install - command: npm ci - - run: - name: commitlint - command: npx --no-install commitlint-circle - - run: - name: lint - command: npm run lint - - run: - name: test - command: npm run test diff --git a/.github/workflows/ci-master-prod-deploy.yml b/.github/workflows/ci-master-prod-deploy.yml deleted file mode 100644 index 1d4be53..0000000 --- a/.github/workflows/ci-master-prod-deploy.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: CI - Master Deploy Production -on: - workflow_dispatch: - inputs: - ref: - description: reference to a commit to deploy - required: true - -jobs: - create-new-tag: - name: Create New Git Tag for release after E2E - runs-on: self-hosted - container: - image: bitnami/git:latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - token: ${{ secrets.BOT_GITHUB_TOKEN }} - - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.39.0 - env: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - WITH_V: true - RELEASE_BRANCHES: master - DEFAULT_BUMP: patch - - trigger-deploy-production: - needs: create-new-tag - name: Deploy Production - runs-on: ubuntu-latest - steps: - - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: ${{ secrets.NOTARISE_DEPLOYER_PRODUCTION_WORKFLOW }} - repo: ${{ secrets.NOTARISE_DEPLOYER_REPO }} - token: ${{ secrets.NOTARISE_REPO_TOKEN }} - inputs: '{ "ref": "${{ github.event.inputs.ref }}" }' \ No newline at end of file diff --git a/.github/workflows/ci-master-staging-deploy.yml b/.github/workflows/ci-master-staging-deploy.yml deleted file mode 100644 index bfb2c41..0000000 --- a/.github/workflows/ci-master-staging-deploy.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: CI - Master Staging Deploy - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - push: - branches: [ master ] - -jobs: - test: - runs-on: ubuntu-latest - name: Tests - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '18.x' - cache: npm - - run: cp .env.example .env - - run: npm ci - - run: npm run lint - - run: npm run typecheck - - run: npm run test - - run: npm run sls-config-check - trigger-deploy-staging: - needs: test - name: Deploy Staging - runs-on: ubuntu-latest - steps: - - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: ${{ secrets.NOTARISE_DEPLOYER_WORKFLOW }} - repo: ${{ secrets.NOTARISE_DEPLOYER_REPO }} - token: ${{ secrets.NOTARISE_REPO_TOKEN }} - inputs: '{ "ref": "${{ github.ref }}" }' \ No newline at end of file diff --git a/.github/workflows/ci-pull-request-close.yml b/.github/workflows/ci-pull-request-close.yml deleted file mode 100644 index f2a02f0..0000000 --- a/.github/workflows/ci-pull-request-close.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: CI - Pull Request Closed -on: - pull_request: - types: [closed] - -env: - DEPLOYMENT_ROLE: ${{ secrets.STG_DEPLOYER_ROLE_ARN }} - AWS_REGION: ap-southeast-1 - -jobs: - remove-pr: - name: remove - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 \ No newline at end of file diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml deleted file mode 100644 index 8d0b904..0000000 --- a/.github/workflows/dependency-check.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: OWASP Dependency Check -on: - workflow_dispatch: - inputs: - ref: - description: reference to a commit to deploy - required: true - -jobs: - dependency-check: - timeout-minutes: 10 - runs-on: self-hosted - name: Dependency Check - container: - image: ubuntu:latest - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - run: npm ci - - uses: GovTechSG/dependency-check-action@v2.0.0 - env: - JAVA_OPTS: "-Dodc.analysis.timeout=180" - with: - Project-Name: ${{ github.repository }} - Report-Format: HTML - - name: Upload Test results - if: ${{ always() }} - uses: actions/upload-artifact@master - with: - name: Depcheck report - path: ${{github.workspace}}/reports - retention-days: 4 - - run: rm -rf ./* diff --git a/.gitignore b/.gitignore index aad3c7e..158e42f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ jspm_packages # .env .env -.env.local \ No newline at end of file +.env.local +.DS_Store