mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
Merge branch 'main' of gitlab.sectorq.eu:jaydee/portainer
This commit is contained in:
28
.gitlab-ci.yml
Normal file
28
.gitlab-ci.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- build
|
||||
- clean
|
||||
|
||||
build-job: # This job runs in the build stage, which runs first.
|
||||
stage: build
|
||||
script:
|
||||
- python3 -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip install pyinstaller requests
|
||||
- pyinstaller --onefile portainer.py
|
||||
- scp dist/portainer jd@morefine.home.lan:/myapps/bin/
|
||||
- rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp
|
||||
artifacts:
|
||||
paths:
|
||||
- dist/
|
||||
expire_in: 1 week
|
||||
# - column=":"
|
||||
# - echo "${flow_id}"
|
||||
# - curl -X POST https://kestra.sectorq.eu/api/v1/executions/webhook/jaydee/ansible-all/${flow_id} -d '{"tag":["proxmox"],"target":["servers"]}' -H "Content-Type${column} application/json"
|
||||
rules:
|
||||
- if: '$CI_COMMIT_MESSAGE =~ /build/'
|
||||
clean-job: # This job runs in the build stage, which runs first.
|
||||
stage: clean
|
||||
script:
|
||||
- rm -rf /home/gitlab-runner/builds/*
|
||||
rules:
|
||||
- if: '$CI_COMMIT_MESSAGE =~ /build/'
|
||||
Reference in New Issue
Block a user