1 Commits

Author SHA1 Message Date
d3c7470a05 🚀 (.gitea/workflows/on_release.yml): Uncomment curl command to enable deployment on release
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 27s
⬆️ (Dockerfile): Update Dockerfile to use uppercase 'AS' for better readability and consistency
2025-02-05 11:00:42 -03:00
2 changed files with 11 additions and 11 deletions

View File

@@ -40,16 +40,16 @@ jobs:
"email": "'$USERNAME'", "email": "'$USERNAME'",
"password": "'$PASSWORD'" "password": "'$PASSWORD'"
}' | jq -r '.token') }' | jq -r '.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" \
# --data '{ --data '{
# "image": "docker.nexus.makecodes.dev/mines/frontend", "image": "docker.nexus.makecodes.dev/mines/frontend",
# "service": "mines_frontend", "service": "mines_frontend",
# "version": "${{ github.ref_name }}", "version": "${{ github.ref_name }}",
# "pipeline": "${{ github.run_number }}", "pipeline": "${{ github.run_number }}",
# "repository": "mines/frontend" "repository": "mines/frontend"
# }' }'
env: env:
USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }} USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }}
PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }} PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }}

View File

@@ -1,4 +1,4 @@
FROM node:12 as build-stage FROM node:12 AS build-stage
WORKDIR /app WORKDIR /app