forked from astarte-platform/astarte-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
29 lines (26 loc) · 766 Bytes
/
.gitlab-ci.yml
File metadata and controls
29 lines (26 loc) · 766 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
variables:
PROJECT_NAME: "astarte-dashboard"
stages:
- build
- deploy
next:build:
image: node:22.14.0
stage: build
script:
- apt-get -y update
- apt-get -y install netbase build-essential autoconf libffi-dev
- npm ci --production
- npm run deploy
docker:snapshot-container:
image: docker:stable
before_script:
- docker info
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $DOCKER_REGISTRY
services:
- docker:stable-dind
stage: deploy
only:
- master@Astarte-NG/astarte-dashboard
script:
- docker build -t $DOCKER_REGISTRY/astarte-ng/astarte-dashboard:snapshot .
- docker push $DOCKER_REGISTRY/astarte-ng/astarte-dashboard:snapshot