diff --git a/.gitea/workflows/deploy-stage.yml b/.gitea/workflows/deploy-stage.yml index d07a21d..977406e 100644 --- a/.gitea/workflows/deploy-stage.yml +++ b/.gitea/workflows/deploy-stage.yml @@ -57,12 +57,6 @@ jobs: stage \ eventhub-admin-ui - - name: Prune old registry images - env: - REGISTRY_USER: ${{ secrets.REGISTRY_USER }} - REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - run: bash scripts/clone-devops-run.sh scripts/prune-registry-images.sh - - name: Deploy admin on stage via SSH uses: appleboy/ssh-action@v0.1.5 with: @@ -73,3 +67,10 @@ jobs: export REGISTRY_USER='${{ secrets.REGISTRY_USER }}' export REGISTRY_PASSWORD='${{ secrets.REGISTRY_PASSWORD }}' bash /opt/eventhub-stage/devops/scripts/deploy-service.sh stage admin ${{ steps.meta.outputs.release_tag }} + + - name: Prune old registry images + continue-on-error: true + env: + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} + run: bash scripts/clone-devops-run.sh scripts/prune-registry-images.sh