4 Commits

Author SHA1 Message Date
3d7e0e87c2 Removendo console.log
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 36s
2025-02-05 12:06:28 -03:00
5b5500f6ac Usando npm ci
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 48s
2025-02-05 11:56:28 -03:00
88ab3f9b33 🔧 (package.json): Update REACT_APP_API_URL in build script to point to the new API endpoint
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 54s
2025-02-05 11:05:43 -03:00
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
5 changed files with 14 additions and 15 deletions

2
.env
View File

@@ -1,2 +1,2 @@
SKIP_PREFLIGHT_CHECK=true
REACT_APP_API_URL=http://127.0.0.1:8000
REACT_APP_API_URL=http://localhost:7788

View File

@@ -40,16 +40,16 @@ jobs:
"email": "'$USERNAME'",
"password": "'$PASSWORD'"
}' | jq -r '.token')
# curl --location --silent 'https://deployer.makecodes.dev/deploy' \
# --header 'Content-Type: application/json' \
# --header "Authorization: Bearer $TOKEN" \
# --data '{
# "image": "docker.nexus.makecodes.dev/mines/frontend",
# "service": "mines_frontend",
# "version": "${{ github.ref_name }}",
# "pipeline": "${{ github.run_number }}",
# "repository": "mines/frontend"
# }'
curl --location --silent 'https://deployer.makecodes.dev/deploy' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $TOKEN" \
--data '{
"image": "docker.nexus.makecodes.dev/mines/frontend",
"service": "mines_frontend",
"version": "${{ github.ref_name }}",
"pipeline": "${{ github.run_number }}",
"repository": "mines/frontend"
}'
env:
USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }}
PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }}

View File

@@ -1,10 +1,10 @@
FROM node:12 as build-stage
FROM node:12 AS build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
RUN npm ci
COPY ./ /app/

View File

@@ -71,7 +71,7 @@
},
"scripts": {
"start": "node scripts/start.js",
"build": "REACT_APP_API_URL=https://minesapi.makecodes.dev node scripts/build.js",
"build": "REACT_APP_API_URL=https://api.mines.makecodes.dev node scripts/build.js",
"test": "node scripts/test.js"
},
"eslintConfig": {

View File

@@ -121,7 +121,6 @@ function App() {
const incrementElapsedTime = () => {
elapsed += 1;
console.log(elapsedTime, elapsed);
setElapsedTime(elapsed);
};