From eed2ea5fb11dfe61f8a4442890a802fe6b61be8d Mon Sep 17 00:00:00 2001 From: Charly Date: Wed, 8 May 2024 15:11:30 +0200 Subject: [PATCH] Remove build and deploy for other projects --- .github/workflows/starter.yaml | 138 --------------------------------- 1 file changed, 138 deletions(-) diff --git a/.github/workflows/starter.yaml b/.github/workflows/starter.yaml index bac5bce0..e351a6b1 100644 --- a/.github/workflows/starter.yaml +++ b/.github/workflows/starter.yaml @@ -67,60 +67,6 @@ jobs: outputs: PUBLIC_URL: ${{ steps.generate_public_url.outputs.public_url }} environment: ${{ needs.setup_workflow_env.outputs.environment }} - generate_workflow_vars-tunocent: - needs: [setup_workflow_env] - environment: - name: ${{ needs.setup_workflow_env.outputs.environment }}-tunocent - runs-on: ubuntu-latest - steps: - - name: Generate PUBLIC_URL if not set - id: generate_public_url - run: | - kube_ingress_base_domain="${{ vars.KUBE_INGRESS_BASE_DOMAIN }}" - public_url="${{ needs.setup_workflow_env.outputs.PUBLIC_URL || vars.PUBLIC_URL }}" - if [ "${public_url}x" == 'x' ] - then public_url=https://tunocent-${{ needs.setup_workflow_env.outputs.environment_short }}.${kube_ingress_base_domain} - fi - echo "public_url=$public_url" >> $GITHUB_OUTPUT - outputs: - PUBLIC_URL: ${{ steps.generate_public_url.outputs.public_url }} - environment: ${{ needs.setup_workflow_env.outputs.environment }}-tunocent - generate_workflow_vars-shawi: - needs: [setup_workflow_env] - environment: - name: ${{ needs.setup_workflow_env.outputs.environment }}-shawi - runs-on: ubuntu-latest - steps: - - name: Generate PUBLIC_URL if not set - id: generate_public_url - run: | - kube_ingress_base_domain="${{ vars.KUBE_INGRESS_BASE_DOMAIN }}" - public_url="${{ needs.setup_workflow_env.outputs.PUBLIC_URL || vars.PUBLIC_URL }}" - if [ "${public_url}x" == 'x' ] - then public_url=https://shawi-${{ needs.setup_workflow_env.outputs.environment_short }}.${kube_ingress_base_domain} - fi - echo "public_url=$public_url" >> $GITHUB_OUTPUT - outputs: - PUBLIC_URL: ${{ steps.generate_public_url.outputs.public_url }} - environment: ${{ needs.setup_workflow_env.outputs.environment }}-shawi - generate_workflow_vars-wibarab: - needs: [setup_workflow_env] - environment: - name: ${{ needs.setup_workflow_env.outputs.environment }}-wibarab - runs-on: ubuntu-latest - steps: - - name: Generate PUBLIC_URL if not set - id: generate_public_url - run: | - kube_ingress_base_domain="${{ vars.KUBE_INGRESS_BASE_DOMAIN }}" - public_url="${{ needs.setup_workflow_env.outputs.PUBLIC_URL || vars.PUBLIC_URL }}" - if [ "${public_url}x" == 'x' ] - then public_url=https://wibarab-${{ needs.setup_workflow_env.outputs.environment_short }}.${kube_ingress_base_domain} - fi - echo "public_url=$public_url" >> $GITHUB_OUTPUT - outputs: - PUBLIC_URL: ${{ steps.generate_public_url.outputs.public_url }} - environment: ${{ needs.setup_workflow_env.outputs.environment }}-wibarab _1: needs: [setup_workflow_env, generate_workflow_vars] uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/build-herokuish-and-push-to-registry.yaml@main @@ -134,45 +80,6 @@ jobs: default_port: ${{ needs.setup_workflow_env.outputs.default_port }} fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _1-tunocent: - needs: [setup_workflow_env, generate_workflow_vars-tunocent] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/build-herokuish-and-push-to-registry.yaml@main - secrets: inherit -# if you run this outside of acdh-oeaw yo uneed to specify every secret you want to pass by name - with: - environment: ${{ needs.generate_workflow_vars-tunocent.outputs.environment}} - BUILDPACK_URL: ${{ needs.setup_workflow_env.outputs.BUILDPACK_URL }} - registry_root: ${{ needs.setup_workflow_env.outputs.registry_root }} - image_tagged: ${{ needs.setup_workflow_env.outputs.image_tagged }}-tunocent - default_port: ${{ needs.setup_workflow_env.outputs.default_port }} - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _1-shawi: - needs: [setup_workflow_env, generate_workflow_vars-shawi] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/build-herokuish-and-push-to-registry.yaml@main - secrets: inherit -# if you run this outside of acdh-oeaw yo uneed to specify every secret you want to pass by name - with: - environment: ${{ needs.generate_workflow_vars-shawi.outputs.environment}} - BUILDPACK_URL: ${{ needs.setup_workflow_env.outputs.BUILDPACK_URL }} - registry_root: ${{ needs.setup_workflow_env.outputs.registry_root }} - image_tagged: ${{ needs.setup_workflow_env.outputs.image_tagged }}-shawi - default_port: ${{ needs.setup_workflow_env.outputs.default_port }} - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _1-wibarab: - needs: [setup_workflow_env, generate_workflow_vars-wibarab] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/build-herokuish-and-push-to-registry.yaml@main - secrets: inherit -# if you run this outside of acdh-oeaw yo uneed to specify every secret you want to pass by name - with: - environment: ${{ needs.generate_workflow_vars-wibarab.outputs.environment}} - BUILDPACK_URL: ${{ needs.setup_workflow_env.outputs.BUILDPACK_URL }} - registry_root: ${{ needs.setup_workflow_env.outputs.registry_root }} - image_tagged: ${{ needs.setup_workflow_env.outputs.image_tagged }}-wibarab - default_port: ${{ needs.setup_workflow_env.outputs.default_port }} - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} _2: needs: [setup_workflow_env] uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/herokuish-tests-db-url.yaml@main @@ -202,49 +109,4 @@ jobs: POSTGRES_ENABLED: false default_port: "${{ needs.setup_workflow_env.outputs.default_port}}" fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _3-tunocent: - needs: [setup_workflow_env, generate_workflow_vars-tunocent, _1-tunocent, _2] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy.yml@main - secrets: inherit - with: - environment: ${{ needs.generate_workflow_vars-tunocent.outputs.environment}} - DOCKER_TAG: ${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_tagged }}-tunocent - APP_NAME: tunocent-app-${{ needs.setup_workflow_env.outputs.environment_short }} - APP_ROOT: ${{ needs.setup_workflow_env.outputs.APP_ROOT }} - SERVICE_ID: ${{ needs.setup_workflow_env.outputs.SERVICE_ID }} - PUBLIC_URL: ${{ needs.generate_workflow_vars-tunocent.outputs.PUBLIC_URL }} - POSTGRES_ENABLED: ${{ needs.setup_workflow_env.outputs.POSTGRES_ENABLED == 'true'}} - default_port: "${{ needs.setup_workflow_env.outputs.default_port}}" - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _3-shawi: - needs: [setup_workflow_env, generate_workflow_vars-shawi, _1-shawi, _2] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy-cluster-2.yml@main - secrets: inherit - with: - environment: ${{ needs.generate_workflow_vars-shawi.outputs.environment}} - DOCKER_TAG: ${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_tagged }}-shawi - APP_NAME: shawi-app-${{ needs.setup_workflow_env.outputs.environment_short }} - APP_ROOT: ${{ needs.setup_workflow_env.outputs.APP_ROOT }} - SERVICE_ID: ${{ needs.setup_workflow_env.outputs.SERVICE_ID }} - PUBLIC_URL: ${{ needs.generate_workflow_vars-shawi.outputs.PUBLIC_URL }} - POSTGRES_ENABLED: ${{ needs.setup_workflow_env.outputs.POSTGRES_ENABLED == 'true'}} - default_port: "${{ needs.setup_workflow_env.outputs.default_port}}" - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} - submodules: ${{ needs.setup_workflow_env.outputs.submodules }} - _3-wibarab: - needs: [setup_workflow_env, generate_workflow_vars-wibarab, _1-wibarab, _2] - uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy.yml@main - secrets: inherit - with: - environment: ${{ needs.generate_workflow_vars-wibarab.outputs.environment}} - DOCKER_TAG: ${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_tagged }}-wibarab - APP_NAME: wibarab-app-${{ needs.setup_workflow_env.outputs.environment_short }} - APP_ROOT: ${{ needs.setup_workflow_env.outputs.APP_ROOT }} - SERVICE_ID: ${{ needs.setup_workflow_env.outputs.SERVICE_ID }} - PUBLIC_URL: ${{ needs.generate_workflow_vars-wibarab.outputs.PUBLIC_URL }} - POSTGRES_ENABLED: ${{ needs.setup_workflow_env.outputs.POSTGRES_ENABLED == 'true'}} - default_port: "${{ needs.setup_workflow_env.outputs.default_port}}" - fetch-depth: ${{ fromJson(needs.setup_workflow_env.outputs.fetch-depth)}} submodules: ${{ needs.setup_workflow_env.outputs.submodules }} \ No newline at end of file