1 Commits

Author SHA1 Message Date
0397465ec3 🔧 (on_release.yml): Remove unnecessary echo statements from deployment script for cleaner logs and better security
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 37s
Build / Code quality (push) Successful in 10m10s
2025-02-05 10:49:34 -03:00

View File

@@ -34,14 +34,12 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- name: Deploy to production server - name: Deploy to production server
run: | run: |
echo "${{ github.ref_name }} - ${{ github.run_number }}"
TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \ TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data '{ --data '{
"email": "'$USERNAME'", "email": "'$USERNAME'",
"password": "'$PASSWORD'" "password": "'$PASSWORD'"
}' | jq -r '.token') }' | jq -r '.token')
echo $TOKEN
curl --location --silent 'https://deployer.makecodes.dev/deploy' \ curl --location --silent 'https://deployer.makecodes.dev/deploy' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header "Authorization: Bearer $TOKEN" \ --header "Authorization: Bearer $TOKEN" \