From 42f269b3c002034b05381c33d910e04b8068133d Mon Sep 17 00:00:00 2001 From: ringotc Date: Wed, 6 Mar 2024 14:07:17 -0800 Subject: [PATCH] remove old workflows --- .github/workflows/deploy-prod-env.yml | 40 --------------------------- .github/workflows/deploy-test-env.yml | 40 --------------------------- 2 files changed, 80 deletions(-) delete mode 100644 .github/workflows/deploy-prod-env.yml delete mode 100644 .github/workflows/deploy-test-env.yml diff --git a/.github/workflows/deploy-prod-env.yml b/.github/workflows/deploy-prod-env.yml deleted file mode 100644 index 5f47550a..00000000 --- a/.github/workflows/deploy-prod-env.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Deploy to Prod Env - -on: - workflow_dispatch: - inputs: - git-tag: - description: 'tag' - required: true - -env: - project-directory: ./ - -jobs: - deploy: - name: Deploy, requires approval - runs-on: ubuntu-latest - if: | - github.repository == 'Greenstand/treetracker-query-api' - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.git-tag }} - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@master - - name: Install kustomize - run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash - working-directory: ${{ env.project-directory }} - - name: Run kustomize - run: (cd ./deployment/base && ../../kustomize edit set image greenstand/treetracker-query-api:${{ steps.package-version.outputs.current-version }} ) - working-directory: ${{ env.project-directory }} - - name: Install doctl for kubernetes - uses: digitalocean/action-doctl@v2 - with: - token: ${{ secrets.DIGITALOCEAN_PRODUCTION_TOKEN }} - - name: Save DigitalOcean kubeconfig - run: doctl kubernetes cluster kubeconfig save ${{ secrets.PRODUCTION_CLUSTER_NAME }} - - name: Update kubernetes resources - run: kustomize build deployment/overlays/prod | kubectl apply -n webmap --wait -f - - working-directory: ${{ env.project-directory }} diff --git a/.github/workflows/deploy-test-env.yml b/.github/workflows/deploy-test-env.yml deleted file mode 100644 index 1c4e1512..00000000 --- a/.github/workflows/deploy-test-env.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Deploy to Test Env - -on: - workflow_dispatch: - inputs: - git-tag: - description: 'tag' - required: true - -env: - project-directory: ./ - -jobs: - deploy: - name: Deploy, requires approval - runs-on: ubuntu-latest - if: | - github.repository == 'Greenstand/treetracker-query-api' - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.git-tag }} - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@master - - name: Install kustomize - run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash - working-directory: ${{ env.project-directory }} - - name: Run kustomize - run: (cd ./deployment/base && ../../kustomize edit set image greenstand/treetracker-query-api:${{ steps.package-version.outputs.current-version }} ) - working-directory: ${{ env.project-directory }} - - name: Install doctl for kubernetes - uses: digitalocean/action-doctl@v2 - with: - token: ${{ secrets.TEST_DIGITALOCEAN_TOKEN }} - - name: Save DigitalOcean kubeconfig - run: doctl kubernetes cluster kubeconfig save ${{ secrets.TEST_CLUSTER_NAME }} - - name: Update kubernetes resources - run: kustomize build deployment/overlays/test | kubectl apply -n webmap --wait -f - - working-directory: ${{ env.project-directory }}