From 9c6db02e57d049a71c799dc27323b9189f8f0838 Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Wed, 5 Feb 2025 10:42:24 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(on=5Frelease.yml):=20Add=20echo?= =?UTF-8?q?=20statement=20to=20print=20github=20ref=5Fname=20and=20run=5Fn?= =?UTF-8?q?umber=20for=20better=20debugging=20=E2=99=BB=EF=B8=8F=20(on=5Fr?= =?UTF-8?q?elease.yml):=20Remove=20redundant=20curl=20command=20to=20clean?= =?UTF-8?q?=20up=20the=20code=20and=20improve=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/on_release.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.gitea/workflows/on_release.yml b/.gitea/workflows/on_release.yml index 01a6c17..8344f4c 100644 --- a/.gitea/workflows/on_release.yml +++ b/.gitea/workflows/on_release.yml @@ -34,6 +34,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Deploy to production server run: | + echo "${{ github.ref_name }} - ${{ github.run_number }}" TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \ --header 'Content-Type: application/json' \ --data '{ @@ -50,16 +51,6 @@ jobs: "pipeline": "${{ github.run_number }}", "repository": "mines/backend" }' - # curl --location --silent 'https://deployer.makecodes.dev/deploy' \ - # --header 'Content-Type: application/json' \ - # --header "Authorization: Bearer $TOKEN" \ - # --data '{ - # "image": "docker.nexus.makecodes.dev/makecodes/nfe-vision", - # "service": "nfe-vision_worker", - # "version": "${{ github.ref_name }}", - # "pipeline": "${{ github.run_number }}", - # "repository": "makecodes/nfe-vision" - # }' env: USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }} PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }}