1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-09 18:52:50 +00:00
fcast/receivers/electron/.gitlab-ci.yml
2024-10-19 13:59:31 -05:00

71 lines
1.8 KiB
YAML

buildElectronDockerContainer:
stage: buildDockerContainers
image: docker:20.10.16
services:
- docker:20.10.16-dind
tags:
- fcast
before_script:
- cd receivers/electron
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -t $CI_REGISTRY/videostreaming/fcast/receiver-electron-dev:latest .
- docker push $CI_REGISTRY/videostreaming/fcast/receiver-electron-dev:latest
when: manual
buildMac:
stage: buildAndDeployElectron
tags:
- m1-macos
before_script:
- cd receivers/electron
script:
- npm install
- npm run build
- npm run make -- --platform="darwin" --arch="arm64"
- npm run make -- --platform="darwin" --arch="x64"
artifacts:
untracked: false
when: on_success
access: all
expire_in: "30 days"
paths:
- receivers/electron/out/make/*
when: manual
buildWindowsAndLinux:
stage: buildAndDeployElectron
image: gitlab.futo.org:5050/videostreaming/fcast/receiver-electron-dev:latest
tags:
- fcast
variables:
UPLOAD_TO_S3:
value: "false"
before_script:
- cd receivers/electron
script:
- npm install
- npm run build
- npm run make -- --platform="win32" --arch="x64"
- npm run make -- --platform="linux" --arch="x64"
- npm run make -- --platform="linux" --arch="arm64"
# todo: upload artifacts to s3 if release or rc
artifacts:
untracked: false
when: on_success
access: all
expire_in: "30 days"
paths:
- receivers/electron/out/make/*
exclude:
- receivers/electron/out/make/wix/x64/*.w*
when: manual
deploy:
stage: buildAndDeployElectron
before_script:
- cd receivers/electron
script:
- python scripts/deploy.py
when: manual