--- .build: &build-image stage: build image: golang:alpine3.18 variables: CGO_ENABLED: 0 build-qa-ui: stage: build image: node:20-alpine3.18 script: - cd qa/ui - npm install --network-timeout=100000 - sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte - npm run build artifacts: paths: - qa/ui/build/ when: on_success build-backend: <<: *build-image script: - go build -v -buildvcs=false -o deploy/backend srs.epita.fr/fic-server/backend build-admin: <<: *build-image script: - go build -v -buildvcs=false -tags gitgo -o deploy/admin-gitgo srs.epita.fr/fic-server/admin - go build -v -buildvcs=false -o deploy/admin srs.epita.fr/fic-server/admin build-evdist: <<: *build-image script: - go build -v -buildvcs=false -o deploy/evdist srs.epita.fr/fic-server/evdist build-frontend: <<: *build-image script: - go build -v -buildvcs=false -o deploy/frontend srs.epita.fr/fic-server/frontend build-frontend-ui: stage: build image: node:20-alpine3.18 script: - cd frontend/ui - npm install --network-timeout=100000 - sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte - npm run build build-dashboard: <<: *build-image script: - go build -v -buildvcs=false -o deploy/dashboard srs.epita.fr/fic-server/dashboard build-repochecker: <<: *build-image script: - apk --no-cache add build-base - go build -buildvcs=false --tags checkupdate -v -o deploy/repochecker srs.epita.fr/fic-server/repochecker - go build -buildvcs=false -buildmode=plugin -v -o deploy/repochecker-epita-rules.so srs.epita.fr/fic-server/repochecker/epita - go build -buildvcs=false -buildmode=plugin -v -o deploy/repochecker-file-inspector-rules.so srs.epita.fr/fic-server/repochecker/file-inspector - go build -buildvcs=false -buildmode=plugin -v -o deploy/repochecker-grammalecte-rules.so srs.epita.fr/fic-server/repochecker/grammalecte - go build -buildvcs=false -buildmode=plugin -v -o deploy/repochecker-pcap-inspector-rules.so srs.epita.fr/fic-server/repochecker/pcap-inspector - go build -buildvcs=false -buildmode=plugin -v -o deploy/repochecker-videos-rules.so srs.epita.fr/fic-server/repochecker/videos - grep "const version" repochecker/update.go | sed -r 's/^.*=\s*(\S.*)$/\1/' > deploy/repochecker.version build-qa: <<: *build-image needs: ["build-qa-ui"] dependencies: - build-qa-ui script: - go build -v -buildvcs=false -o deploy/qa srs.epita.fr/fic-server/qa