Skip to content

Commit e60067e

Browse files
committed
change indexing
1 parent 44301b9 commit e60067e

File tree

3 files changed

+71
-95
lines changed

3 files changed

+71
-95
lines changed

content/_index.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
---
2-
title: UVCloud
2+
title: Quickstart
3+
weight: 1
34
---
45

6+
## Build uv cli using make
7+
8+
```sh
9+
$ make clean
10+
$ make -B build
11+
```
12+
## Prebuilt binaries
513
Common platform binaries are published on the releases page. this includes linux, osx, windows and even arm binary for arm linux platforms such as raspbian.
614
## Quick installation
715
### OSX
@@ -20,3 +28,64 @@ See [Releases](https://github.com/uvcloud/uv-cli/releases).
2028
# Quickstart
2129
[![asciicast](https://asciinema.org/a/193296.png)](https://asciinema.org/a/193296)
2230
See [Documentations](http://docs.uvcloud.ir/quickstart/) for more details.
31+
32+
# Gitlab integration
33+
Test, build & deploy can be automated using gitlab ci.
34+
An example of .gitlab-ci.yaml configuration file is as follow:
35+
```yaml
36+
# This file is a template, and might need editing before it works on your project.
37+
# Official docker image.
38+
image: docker:latest
39+
services:
40+
- docker:dind
41+
42+
stages:
43+
- test
44+
- build
45+
- deploy
46+
47+
variables:
48+
LINK: controller.uvcloud.ir:8443
49+
#Configure this variable in Secure Variables:
50+
UVCLOUD_USER: <username>
51+
# UVCLOUD_PASSWORD: ----> It's more secure to be setted from settings -> ci/cd -> variables.
52+
APP: rec
53+
IMAGE: "hub.uvcloud.ir/$UVCLOUD_USER/$APP:$CI_COMMIT_REF_NAME"
54+
55+
# Test stages
56+
test1:
57+
stage: test
58+
before_script: []
59+
script:
60+
- echo run tests
61+
62+
test2:
63+
stage: test
64+
before_script: []
65+
script:
66+
- echo run tests
67+
68+
69+
# Build stages
70+
before_script:
71+
- docker login -u "$UVCLOUD_USER" -p "$UVCLOUD_PASSWORD" hub.uvcloud.ir
72+
73+
build-master:
74+
75+
stage: build
76+
script:
77+
- docker build --pull -t "$IMAGE" .
78+
- docker push "$IMAGE"
79+
only:
80+
- master # use `tags` for build when ever a new tag pushed to the repository
81+
82+
deploy:
83+
image: hub.uvcloud.ir/uvcloud/uv-cli:V2.0.0-rc7
84+
stage: deploy
85+
before_script:
86+
- echo $UVCLOUD_PASSWORD | uv-cli login -u $UVCLOUD_USER
87+
- uv-cli app:info -n $APP
88+
script:
89+
- "uv-cli app:configSet -n $APP -i $IMAGE"
90+
- "uv-cli app:info -n $APP"
91+
```

content/quickstart/_index.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

content/quickstart/vcap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Start using vcap services
3-
weight: 3
3+
weight: 4
44
---
55

66
# VCAP_SERVICES

0 commit comments

Comments
 (0)