mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add pyinstaller pipes
This commit is contained in:
parent
fa78cd4c95
commit
5fc1b58d11
@ -1,13 +1,15 @@
|
|||||||
stages:
|
stages:
|
||||||
- build-dev
|
- win-dev
|
||||||
- build-prod
|
- win-prod
|
||||||
|
- docker-dev
|
||||||
|
- docker-prod
|
||||||
|
|
||||||
docker-build-dev:
|
docker-build-dev:
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:dind
|
||||||
command: ["--experimental"]
|
command: ["--experimental"]
|
||||||
stage: build-dev
|
stage: docker-dev
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
rules:
|
rules:
|
||||||
@ -48,7 +50,7 @@ docker-build-prod:
|
|||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:dind
|
||||||
command: ["--experimental"]
|
command: ["--experimental"]
|
||||||
stage: build-prod
|
stage: docker-prod
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
rules:
|
rules:
|
||||||
@ -83,3 +85,63 @@ docker-build-prod:
|
|||||||
docker buildx rm zedBuilder && echo "Successfully Stopped builder instance" || echo "Failed to stop builder instance."
|
docker buildx rm zedBuilder && echo "Successfully Stopped builder instance" || echo "Failed to stop builder instance."
|
||||||
echo "Please review multi-arch manifests are present:"
|
echo "Please review multi-arch manifests are present:"
|
||||||
docker buildx imagetools inspect "$CI_REGISTRY_IMAGE${tag}"
|
docker buildx imagetools inspect "$CI_REGISTRY_IMAGE${tag}"
|
||||||
|
|
||||||
|
win-dev-build:
|
||||||
|
stage: win-dev
|
||||||
|
tags:
|
||||||
|
- win64
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .venv/
|
||||||
|
rules:
|
||||||
|
- if: "$CI_COMMIT_BRANCH == 'dev'"
|
||||||
|
environment:
|
||||||
|
name: development
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
python -m venv .venv
|
||||||
|
.venv\Scripts\activate.ps1
|
||||||
|
pip install pyinstaller
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- pyinstaller -F main.py
|
||||||
|
--distpath .
|
||||||
|
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
||||||
|
--name "crafty_commander"
|
||||||
|
--paths .venv\Lib\site-packages
|
||||||
|
--hidden-import cryptography
|
||||||
|
--hidden-import cffi
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- app\
|
||||||
|
- .\crafty_commander.exe
|
||||||
|
|
||||||
|
win-prod-build:
|
||||||
|
stage: win-prod
|
||||||
|
tags:
|
||||||
|
- win64
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .venv/
|
||||||
|
rules:
|
||||||
|
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||||
|
environment:
|
||||||
|
name: production
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
python -m venv .venv
|
||||||
|
.venv\Scripts\activate.ps1
|
||||||
|
pip install pyinstaller
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- pyinstaller -F main.py
|
||||||
|
--distpath .
|
||||||
|
--icon app\frontend\static\assets\images\Crafty_4-0_Logo_square.ico
|
||||||
|
--name "crafty_commander"
|
||||||
|
--paths .venv\Lib\site-packages
|
||||||
|
--hidden-import cryptography
|
||||||
|
--hidden-import cffi
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- app\
|
||||||
|
- .\crafty_commander.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user