diff --git a/.gitea/workflows/deploy-stage.yml b/.gitea/workflows/deploy-stage.yml index 1ec0284..0627971 100644 --- a/.gitea/workflows/deploy-stage.yml +++ b/.gitea/workflows/deploy-stage.yml @@ -60,12 +60,6 @@ jobs: stage \ eventhub traefik-coraza fallback bot-emulator-users observer-web logrotate - - 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 core on stage via SSH uses: appleboy/ssh-action@v0.1.5 with: @@ -76,3 +70,10 @@ jobs: export REGISTRY_USER='${{ secrets.REGISTRY_USER }}' export REGISTRY_PASSWORD='${{ secrets.REGISTRY_PASSWORD }}' bash /opt/eventhub-stage/devops/scripts/deploy-service.sh stage core ${{ 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