-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
63 lines (51 loc) · 1.56 KB
/
.gitlab-ci.yml
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
59
60
61
62
63
image: docker:latest
services:
- docker:dind
variables:
# This should be set by docker image already, just to be sure...
DOCKER_HOST: tcp://docker:2375
# Use overlayfs driver for better performance
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
DOCKER_BUILDKIT: 1
VERSION: "v0.0.16"
stages:
- build
- release
build-docker-image:
stage: build
image:
name: torizonextras/pwsh-gitlab:latest
variables:
TASKS_ITERATIVE: "False"
TASKS_OVERRIDE_ENV: "False"
script: |
echo '
docker login -u matheuscastello -p $env:DOCKER_PSSWD
./.vscode/tasks.ps1 run build-container-torizon-release-amd64
docker compose -f docker-compose.yml push torizon-emulator-manager
' | gitlabWrapper.ps1
artifacts:
paths:
- install.sh
- docker-compose.yml
- torizon-emulator-manager
release-artifacts:
stage: release
needs:
- build-docker-image
image:
name: registry.gitlab.com/gitlab-org/release-cli:latest
script: |
echo "Releasing version v$VERSION"
release:
tag_name: $VERSION
description: Torizon Emulator Manager $VERSION
assets:
links:
- name: install.sh
url: $CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_REF_NAME/raw/install.sh?job=build-docker-image
- name: docker-compose.yml
url: $CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_REF_NAME/raw/docker-compose.yml?job=build-docker-image
- name: torizon-emulator-manager
url: $CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_REF_NAME/raw/torizon-emulator-manager?job=build-docker-image