FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/.gitlab-ci.yml at docs/gitlab-pages · pgasparo/python-gitlab · GitHub
pgasparo
python-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
.gitlab-ci.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (53 loc) · 1.5 KB
Breadcrumbs
python-gitlab
/
.gitlab-ci.yml
Copy path
File metadata and controls
58 lines (53 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
image
:
python:3.7
stages
:
-
deploy
pages
:
stage
:
deploy
script
:
-
pip3 install sphinx
-
python3 setup.py build_sphinx
-
mkdir public
-
mv build/sphinx/html/* public/
artifacts
:
expire_in
:
1 day
paths
:
-
public
#
only:
#
- master
build_test_image
:
stage
:
deploy
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[""]
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/tools/Dockerfile-test --destination $CI_REGISTRY_IMAGE:test
only
:
refs
:
-
master
changes
:
-
tools/*
deploy
:
stage
:
deploy
script
:
-
pip install -U setuptools wheel twine
-
python setup.py sdist bdist_wheel
#
test package
-
python3 -m venv test
-
. test/bin/activate
-
pip install -U dist/python_gitlab*.whl
-
gitlab -h
-
deactivate
-
twine upload --skip-existing -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
only
:
-
tags
deploy_image
:
stage
:
deploy
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[""]
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
tags
Back
|
FazBrowse Home
|
New Git URL