From 3a58d21303eb2ce3acce435c12ac3abf73d779d7 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 9 Oct 2024 13:13:27 +0100 Subject: [PATCH] Disable deployments --- .github/workflows/cd.yml | 100 +++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 46fc842..d8a3733 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,54 +35,54 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }} - update-ds-infrastructure-web: - runs-on: ubuntu-latest - needs: - - build - - version - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - with: - repository: nationalarchives/ds-infrastructure-web - ref: main - token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} - - name: Set up git config - run: | - git config user.name "ds-search-api" - git config user.email "<>" - - name: Install jq - run: sudo apt-get install jq - - name: Update config - run: jq --indent 4 '(.services.search_api.version|="${{ needs.version.outputs.version }}")' config/develop.json > tmp.$$.json && mv tmp.$$.json config/develop.json - - name: Push new version - run: | - git add config/develop.json - git commit -m "Update search-api to v${{ needs.version.outputs.version }}" - git push origin main + # update-ds-infrastructure-web: + # runs-on: ubuntu-latest + # needs: + # - build + # - version + # if: github.ref == 'refs/heads/main' + # steps: + # - uses: actions/checkout@v4 + # with: + # repository: nationalarchives/ds-infrastructure-web + # ref: main + # token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} + # - name: Set up git config + # run: | + # git config user.name "ds-search-api" + # git config user.email "<>" + # - name: Install jq + # run: sudo apt-get install jq + # - name: Update config + # run: jq --indent 4 '(.services.search_api.version|="${{ needs.version.outputs.version }}")' config/develop.json > tmp.$$.json && mv tmp.$$.json config/develop.json + # - name: Push new version + # run: | + # git add config/develop.json + # git commit -m "Update search-api to v${{ needs.version.outputs.version }}" + # git push origin main - update-dblclk: - runs-on: ubuntu-latest - needs: - - build - - version - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - with: - repository: nationalarchives/ds-etna - ref: proof-of-concept - token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} - - name: Set up git config - run: | - git config user.name "ds-search-api" - git config user.email "<>" - - name: Install yq - uses: dcarbone/install-yq-action@v1.1.1 - - name: Update config - run: yq '(.services.search_api.image|="ghcr.io/${{ github.repository_owner }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ needs.version.outputs.version }}")' docker-compose.yml > tmp.$$.yml && mv tmp.$$.yml docker-compose.yml - - name: Push new version - run: | - git add docker-compose.yml - git commit -m "Update search API to v${{ needs.version.outputs.version }}" - git push origin proof-of-concept \ No newline at end of file + # update-dblclk: + # runs-on: ubuntu-latest + # needs: + # - build + # - version + # if: github.ref == 'refs/heads/main' + # steps: + # - uses: actions/checkout@v4 + # with: + # repository: nationalarchives/ds-etna + # ref: proof-of-concept + # token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} + # - name: Set up git config + # run: | + # git config user.name "ds-search-api" + # git config user.email "<>" + # - name: Install yq + # uses: dcarbone/install-yq-action@v1.1.1 + # - name: Update config + # run: yq '(.services.search_api.image|="ghcr.io/${{ github.repository_owner }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ needs.version.outputs.version }}")' docker-compose.yml > tmp.$$.yml && mv tmp.$$.yml docker-compose.yml + # - name: Push new version + # run: | + # git add docker-compose.yml + # git commit -m "Update search API to v${{ needs.version.outputs.version }}" + # git push origin proof-of-concept \ No newline at end of file