From 4b005fbf7bbf351b5c0ba25e22b042f694ff712b Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Thu, 24 Oct 2024 16:36:42 +0200 Subject: [PATCH] disable automatic docker deploy. Upload artifacts only once on test build --- .github/workflows/build.yml | 7 +------ .github/workflows/publish.yml | 10 ---------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8092f616..4d6a00b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,12 +49,7 @@ jobs: - name: build run: npm run build-server - uses: actions/upload-artifact@v4 - with: - name: "server" - path: "source/server/dist" - if-no-files-found: error - retention-days: 1 - - uses: actions/upload-artifact@v4 + if: matrix.node-version == 16 with: name: "server-files" path: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 094b01ea..27dd1f29 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,13 +67,3 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: update docker service - run: > - docker -H ssh://github@${{ env.DEPLOY_HOST }}:22 service update - --with-registry-auth - --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.docker-publish.outputs.digest }} - ecorpus_main - - name: check service status - run: > - curl -sSL --fail -H "Accept: application/json" -I http://${{ env.DEPLOY_HOST }}/api/v1/scenes