-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
50 lines (39 loc) · 1.02 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
image: docker
default:
tags:
- test-runner
stages:
- build
# - test
# - deploy
build-job:
stage: build
when: on_success
only:
- main
image: docker:stable
services:
- name: docker:dind
command: ["--tls=false"]
script:
- docker login gitlab.informatika.org:4567 -u access-token-sm-fe -p $CI_TOKEN
- docker build -t gitlab.informatika.org:4567/if3250_2024_k03_02_sm-02/sm-fe .
- docker push gitlab.informatika.org:4567/if3250_2024_k03_02_sm-02/sm-fe
# unit-test-job:
# stage: test
# script:
# - echo "Running unit tests... This will take about 60 seconds."
# - sleep 60
# - echo "Code coverage is 90%"
# lint-test-job:
# stage: test
# script:
# - echo "Linting code... This will take about 10 seconds."
# - sleep 10
# - echo "No lint issues found."
# deploy-job:
# stage: deploy
# environment: production
# script:
# - echo "Deploying application..."
# - echo "Application successfully deployed."