diff --git a/.github/workflows/build-main.yaml b/.github/workflows/build-main.yaml index 374b848..89cdc1c 100644 --- a/.github/workflows/build-main.yaml +++ b/.github/workflows/build-main.yaml @@ -20,18 +20,3 @@ jobs: tag: ${{ github.sha }} push_latest: true registry_token: ${{ github.token }} - - deploy-staging: - needs: build - runs-on: ubuntu-latest - environment: staging - steps: - - name: Deploy to staging - uses: mlibrary/deploy-to-kubernetes@v3 - with: - registry_token: ${{ secrets.GITHUB_TOKEN }} - image: ghcr.io/${{ github.repository }}-unstable:${{ github.sha }} - cluster_ca: ${{ secrets.KUBERNETES_CA }} - cluster_server: ${{ secrets.KUBERNETES_SERVER }} - namespace_token: ${{ secrets.KUBERNETES_TOKEN }} - namespace: ${{ secrets.KUBERNETES_NAMESPACE }} diff --git a/.github/workflows/deploy-production.yaml b/.github/workflows/deploy-production.yaml deleted file mode 100644 index 8f474b4..0000000 --- a/.github/workflows/deploy-production.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy to Production - -on: - workflow_dispatch: - inputs: - tag: - description: Release - required: true - -jobs: - deploy: - runs-on: ubuntu-latest - environment: production - steps: - - name: Deploy to production - uses: mlibrary/deploy-to-kubernetes@v3 - with: - registry_token: ${{ github.token }} - image: ghcr.io/${{ github.repository }}:${{ github.event.inputs.tag }} - cluster_ca: ${{ secrets.KUBERNETES_CA }} - cluster_server: ${{ secrets.KUBERNETES_SERVER }} - namespace_token: ${{ secrets.KUBERNETES_TOKEN }} - namespace: ${{ secrets.KUBERNETES_NAMESPACE }} diff --git a/.github/workflows/manual-deploy-testing.yaml b/.github/workflows/manual-deploy-testing.yaml deleted file mode 100644 index f2f18ba..0000000 --- a/.github/workflows/manual-deploy-testing.yaml +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: Manual Deploy to Testing - -on: - workflow_dispatch: - inputs: - tag: - description: tag - required: true - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: hathitrust/github_actions/build@v1 - with: - image: ghcr.io/${{ github.repository }}-unstable - tag: ${{ github.event.inputs.tag }} - push_latest: false - registry_token: ${{ github.token }} - - deploy: - needs: build - runs-on: ubuntu-latest - environment: testing - steps: - - uses: actions/checkout@v3 - - name: Find commit for tag - id: tag_check - uses: hathitrust/github_actions/validate-tag@v1 - with: - tag: ${{ github.event.inputs.tag }} - - name: Deploy to testing - uses: mlibrary/deploy-to-kubernetes@v3 - with: - registry_token: ${{ github.token }} - image: ghcr.io/${{ github.repository }}-unstable:${{ steps.tag_check.outputs.tag }} - cluster_ca: ${{ secrets.KUBERNETES_CA }} - cluster_server: ${{ secrets.KUBERNETES_SERVER }} - namespace_token: ${{ secrets.KUBERNETES_TOKEN }} - namespace: ${{ secrets.KUBERNETES_NAMESPACE }}