diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 41687d9..688408f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,7 +28,7 @@ jobs: { "name": "demo-frontend", "version": "1.0.0", - "scripts": {"build": "mkdir -p dist && echo '

Demo Frontend

Build: ${SHORT_SHA}

Commit: ${GITHUB_SHA}

Time: \$(date)

' > dist/index.html"} + "scripts": {"build": "mkdir -p dist && echo '

Demo Frontend

Build: ${SHORT_SHA}

Commit: ${GITHUB_SHA}

Time: $(date)

' > dist/index.html && echo 'OK' > dist/healthz"} } EOF @@ -36,6 +36,7 @@ jobs: FROM nginx:alpine COPY dist/ /usr/share/nginx/html/ EXPOSE 80 + HEALTHCHECK --interval=30s --timeout=3s CMD wget -q -O- http://localhost/healthz || exit 1 EOF env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}