-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
38 lines (32 loc) · 878 Bytes
/
.gitlab-ci.yml
File metadata and controls
38 lines (32 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# This file is written to support the CI/CD process of Gitlab.
# Author: Sumit Sharma
# Maintainer: Sumit Sharma
# E-mail: sumit.sharma@clustervision.com"
# Status: Development
# copyright: Copyright 2025, Luna2 Project [CLI]
# license: GPL
#
stages:
- production
- development
production:
stage: production
image: python:3.10.0-alpine
only:
- main
script:
- python setup.py sdist bdist_wheel
- apk add openssh-client
- apk add sshpass
- sshpass -p $SSH_PASSWORD scp -r -oStrictHostKeyChecking=no dist/* $SSH_USER@$IPADDRESS:$LOCATION
development:
stage: development
image: python:3.10.0-alpine
only:
- development
script:
- python setup.py sdist bdist_wheel
- apk add openssh-client
- apk add sshpass
- sshpass -p $SSH_PASSWORD scp -r -oStrictHostKeyChecking=no dist/* $SSH_USER@$IPADDRESS:$DEV_LOCATION