2020-09-06 12:56:36 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-11-13 10:16:58 +00:00
|
|
|
name: build-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/srs.epita.fr/fic-server
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get deps
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add git
|
2023-07-14 15:54:39 +00:00
|
|
|
- go get -v -d ./...
|
2020-11-13 10:16:58 +00:00
|
|
|
- mkdir deploy
|
|
|
|
|
2021-12-10 01:12:41 +00:00
|
|
|
- name: build qa ui
|
2024-05-24 15:21:07 +00:00
|
|
|
image: node:22-alpine
|
2021-12-10 01:12:41 +00:00
|
|
|
commands:
|
|
|
|
- cd qa/ui
|
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
|
|
|
- tar chjf ../../deploy/htdocs-qa.tar.bz2 build
|
|
|
|
|
2023-11-22 11:34:58 +00:00
|
|
|
- name: vet and tests
|
2020-11-13 14:15:08 +00:00
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
2024-05-24 08:52:14 +00:00
|
|
|
- go vet -buildvcs=false -tags gitgo ./...
|
|
|
|
- go vet -buildvcs=false ./...
|
2023-11-22 11:34:58 +00:00
|
|
|
- go test ./...
|
2020-11-13 14:15:08 +00:00
|
|
|
|
2020-11-13 10:16:58 +00:00
|
|
|
- name: build admin
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -tags gitgo -o deploy/admin-gitgo-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/admin
|
|
|
|
- go build -buildvcs=false -o deploy/admin-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/admin
|
2020-11-13 15:08:22 +00:00
|
|
|
- tar chjf deploy/htdocs-admin.tar.bz2 htdocs-admin
|
2021-02-04 18:04:12 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: build checker
|
2020-11-13 10:16:58 +00:00
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/checker-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/checker
|
2021-02-04 18:04:12 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2022-05-30 15:25:07 +00:00
|
|
|
- name: build evdist
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/evdist-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/evdist
|
2022-05-30 15:25:07 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2022-05-30 15:25:07 +00:00
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: build generator
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/generator-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/generator
|
2023-07-10 07:17:02 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2023-07-10 07:17:02 +00:00
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: build receiver
|
2020-11-13 10:16:58 +00:00
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/receiver-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/receiver
|
2021-02-04 18:04:12 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: build frontend fic ui
|
2024-05-24 15:21:07 +00:00
|
|
|
image: node:22-alpine
|
2021-08-31 19:00:37 +00:00
|
|
|
commands:
|
2023-07-09 18:40:53 +00:00
|
|
|
- cd frontend/fic
|
2021-08-31 19:00:37 +00:00
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
2023-07-09 18:40:53 +00:00
|
|
|
- tar chjf ../../deploy/htdocs-frontend-fic.tar.bz2 build
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2021-08-31 19:00:37 +00:00
|
|
|
|
2020-11-13 10:16:58 +00:00
|
|
|
- name: build dashboard
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/dashboard-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/dashboard
|
2020-11-13 15:08:22 +00:00
|
|
|
- tar chjf deploy/htdocs-dashboard.tar.bz2 htdocs-dashboard
|
2021-02-04 18:04:12 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2020-11-13 14:15:37 +00:00
|
|
|
- name: build repochecker
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2022-07-11 17:57:33 +00:00
|
|
|
- apk --no-cache add build-base
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false --tags checkupdate -o deploy/repochecker-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/repochecker
|
|
|
|
- go build -buildvcs=false -buildmode=plugin -o deploy/repochecker-epita-rules-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.so srs.epita.fr/fic-server/repochecker/epita
|
|
|
|
- go build -buildvcs=false -buildmode=plugin -o deploy/repochecker-file-inspector-rules-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.so srs.epita.fr/fic-server/repochecker/file-inspector
|
|
|
|
- go build -buildvcs=false -buildmode=plugin -o deploy/repochecker-grammalecte-rules-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.so srs.epita.fr/fic-server/repochecker/grammalecte
|
|
|
|
- go build -buildvcs=false -buildmode=plugin -o deploy/repochecker-pcap-inspector-rules-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.so srs.epita.fr/fic-server/repochecker/pcap-inspector
|
|
|
|
- go build -buildvcs=false -buildmode=plugin -o deploy/repochecker-videos-rules-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.so srs.epita.fr/fic-server/repochecker/videos
|
2020-11-13 14:15:37 +00:00
|
|
|
- grep "const version" repochecker/update.go | sed -r 's/^.*=\s*(\S.*)$/\1/' > deploy/repochecker.version
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 14:15:37 +00:00
|
|
|
|
2020-11-13 13:31:51 +00:00
|
|
|
- name: build qa
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/qa-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/qa
|
2021-02-04 18:04:12 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2021-08-01 20:30:09 +00:00
|
|
|
when:
|
2022-11-21 08:49:28 +00:00
|
|
|
branch:
|
|
|
|
exclude:
|
2023-07-25 04:42:54 +00:00
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2021-02-23 08:10:25 +00:00
|
|
|
- name: docker admin
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-admin
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-admin
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: docker checker
|
2021-02-23 08:10:25 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-07-10 07:17:02 +00:00
|
|
|
repo: nemunaire/fic-checker
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2023-07-10 07:17:02 +00:00
|
|
|
dockerfile: Dockerfile-checker
|
2021-02-23 08:10:25 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2022-05-30 15:25:07 +00:00
|
|
|
- name: docker evdist
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-evdist
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-evdist
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: docker generator
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-generator
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-generator
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2023-07-25 04:42:54 +00:00
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: docker receiver
|
2021-02-23 08:10:25 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-07-09 18:40:53 +00:00
|
|
|
repo: nemunaire/fic-receiver
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2023-07-09 18:40:53 +00:00
|
|
|
dockerfile: Dockerfile-receiver
|
2021-02-23 08:10:25 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-07-20 18:27:39 +00:00
|
|
|
- name: docker frontend nginx
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-nginx
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-nginx
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-09-05 04:02:45 +00:00
|
|
|
- name: docker frontend ui
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-frontend-ui
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-frontend-ui
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-02-23 08:10:25 +00:00
|
|
|
- name: docker dashboard
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-dashboard
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-dashboard
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
- name: docker qa
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-qa
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-qa
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-05-13 22:44:55 +00:00
|
|
|
- name: docker repochecker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-repochecker
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-repochecker
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-09-05 03:27:36 +00:00
|
|
|
- name: docker remote-scores-sync-zqds
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-remote-scores-sync-zqds
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-remote-scores-sync-zqds
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-25 04:42:54 +00:00
|
|
|
- name: docker remote-challenge-sync-airbus
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-remote-challenge-sync-airbus
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-remote-challenge-sync-airbus
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2022-06-06 10:55:39 +00:00
|
|
|
|
2023-11-25 18:05:29 +00:00
|
|
|
- name: docker fic-get-remote-files
|
2024-01-13 13:33:37 +00:00
|
|
|
failure: ignore
|
2023-11-25 18:05:29 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-get-remote-files
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-get-remote-files
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-25 04:42:42 +00:00
|
|
|
- name: docker fickit-deploy
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fickit-deploy
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-deploy
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-10-31 23:28:39 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2020-11-13 10:16:58 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm64
|
2020-09-06 12:56:36 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/srs.epita.fr/fic-server
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get deps
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add git
|
2024-05-24 08:52:14 +00:00
|
|
|
- go get -d ./...
|
2023-07-25 04:42:54 +00:00
|
|
|
- mkdir deploy
|
2020-09-06 12:56:36 +00:00
|
|
|
|
|
|
|
- name: build admin
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2022-07-11 17:57:33 +00:00
|
|
|
- apk --no-cache add build-base
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/admin-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/admin
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: build checker
|
2020-11-13 10:16:58 +00:00
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/checker-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/checker
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2022-05-30 15:25:07 +00:00
|
|
|
- name: build evdist
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/evdist-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/evdist
|
2022-05-30 15:25:07 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2022-05-30 15:25:07 +00:00
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: build generator
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/generator-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/generator
|
2023-07-10 07:17:02 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2023-07-10 07:17:02 +00:00
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: build receiver
|
2020-11-13 10:16:58 +00:00
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/receiver-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/receiver
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: build frontend fic ui
|
2024-05-24 15:21:07 +00:00
|
|
|
image: node:22-alpine
|
2021-08-31 19:00:37 +00:00
|
|
|
commands:
|
2023-07-09 18:40:53 +00:00
|
|
|
- cd frontend/fic
|
2021-08-31 19:00:37 +00:00
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2021-08-31 19:00:37 +00:00
|
|
|
|
2020-11-13 10:16:58 +00:00
|
|
|
- name: build dashboard
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/dashboard-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/dashboard
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 10:16:58 +00:00
|
|
|
|
2020-11-13 14:15:37 +00:00
|
|
|
- name: build repochecker
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2022-07-11 17:57:33 +00:00
|
|
|
- apk --no-cache add build-base
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false --tags checkupdate -o deploy/repochecker-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/repochecker
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2020-11-13 14:15:37 +00:00
|
|
|
|
2021-02-23 07:50:59 +00:00
|
|
|
- name: build repochecker for macOS
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false --tags checkupdate -o deploy/repochecker-darwin-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/repochecker
|
2021-02-23 07:50:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GOOS: darwin
|
|
|
|
GOARCH: arm64
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2021-02-23 07:50:59 +00:00
|
|
|
|
2021-12-10 01:12:41 +00:00
|
|
|
- name: build qa ui
|
2024-05-24 15:21:07 +00:00
|
|
|
image: node:22-alpine
|
2021-12-10 01:12:41 +00:00
|
|
|
commands:
|
|
|
|
- cd qa/ui
|
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
|
|
|
- tar chjf ../../deploy/htdocs-qa.tar.bz2 build
|
2023-07-25 04:42:54 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2021-12-10 01:12:41 +00:00
|
|
|
|
2020-11-13 13:31:51 +00:00
|
|
|
- name: build qa
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
2024-05-24 08:52:14 +00:00
|
|
|
- go build -buildvcs=false -o deploy/qa-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/qa
|
2021-02-28 17:28:05 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
2021-08-01 20:30:09 +00:00
|
|
|
when:
|
2022-11-21 08:49:28 +00:00
|
|
|
branch:
|
|
|
|
exclude:
|
2023-07-25 04:42:54 +00:00
|
|
|
- master
|
2020-09-06 12:56:36 +00:00
|
|
|
|
|
|
|
- name: docker admin
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-admin
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2020-09-06 12:56:36 +00:00
|
|
|
dockerfile: Dockerfile-admin
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: docker checker
|
2020-09-06 12:56:36 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-07-10 07:17:02 +00:00
|
|
|
repo: nemunaire/fic-checker
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2023-07-10 07:17:02 +00:00
|
|
|
dockerfile: Dockerfile-checker
|
2020-09-06 12:56:36 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2022-05-30 15:25:07 +00:00
|
|
|
- name: docker evdist
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-evdist
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-evdist
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: docker generator
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-generator
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-generator
|
|
|
|
when:
|
|
|
|
branch:
|
2023-12-16 00:16:27 +00:00
|
|
|
- master
|
|
|
|
|
|
|
|
- name: docker fic-get-remote-files
|
2024-01-13 13:33:37 +00:00
|
|
|
failure: ignore
|
2023-12-16 00:16:27 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-get-remote-files
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-get-remote-files
|
|
|
|
when:
|
|
|
|
branch:
|
2023-07-10 07:17:02 +00:00
|
|
|
- master
|
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: docker receiver
|
2020-09-06 12:56:36 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-07-09 18:40:53 +00:00
|
|
|
repo: nemunaire/fic-receiver
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2023-07-09 18:40:53 +00:00
|
|
|
dockerfile: Dockerfile-receiver
|
2020-09-06 12:56:36 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-07-20 18:27:39 +00:00
|
|
|
- name: docker frontend nginx
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-nginx
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-nginx
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2020-09-06 12:56:36 +00:00
|
|
|
- name: docker dashboard
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-dashboard
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2020-09-06 12:56:36 +00:00
|
|
|
dockerfile: Dockerfile-dashboard
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2020-11-13 13:31:51 +00:00
|
|
|
|
|
|
|
- name: docker qa
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-qa
|
2021-02-23 08:10:25 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
2020-11-13 13:31:51 +00:00
|
|
|
dockerfile: Dockerfile-qa
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2021-02-23 08:10:25 +00:00
|
|
|
|
2021-05-13 22:44:55 +00:00
|
|
|
- name: docker repochecker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-repochecker
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-repochecker
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2021-10-31 23:28:39 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
2021-02-23 08:10:25 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: docker-manifest
|
|
|
|
steps:
|
|
|
|
- name: publish admin
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-admin.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: publish checker
|
2021-02-23 08:10:25 +00:00
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
2023-07-10 07:17:02 +00:00
|
|
|
spec: .drone-manifest-fic-checker.yml
|
2021-02-23 08:10:25 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2022-05-30 15:25:07 +00:00
|
|
|
- name: publish evdist
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-evdist.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2023-07-10 07:17:02 +00:00
|
|
|
- name: publish generator
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-generator.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
- name: publish receiver
|
2021-02-23 08:10:25 +00:00
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
2023-07-09 18:40:53 +00:00
|
|
|
spec: .drone-manifest-fic-receiver.yml
|
2021-02-23 08:10:25 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2021-07-20 18:27:39 +00:00
|
|
|
- name: publish frontend nginx
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-nginx.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2024-03-25 17:12:33 +00:00
|
|
|
- name: publish frontend ui
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-frontend-ui.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2021-02-23 08:10:25 +00:00
|
|
|
- name: publish dashboard
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-dashboard.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2021-05-13 22:44:55 +00:00
|
|
|
- name: publish repochecker
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-repochecker.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2021-02-23 08:10:25 +00:00
|
|
|
- name: publish qa
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fic-qa.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2023-11-25 18:05:29 +00:00
|
|
|
- name: docker fic-get-remote-files
|
2024-01-13 13:33:37 +00:00
|
|
|
failure: ignore
|
2023-11-25 18:05:29 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/fic-get-remote-files
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
dockerfile: Dockerfile-get-remote-files
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2023-07-25 04:42:42 +00:00
|
|
|
- name: publish fickit-deploy
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest-fickit-deploy.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2021-02-23 08:10:25 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-amd64
|
|
|
|
- build-arm64
|