forked from mattermost/mattermost-developer-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (34 loc) · 821 Bytes
/
.gitlab-ci.yml
File metadata and controls
40 lines (34 loc) · 821 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
30
31
32
33
34
35
36
37
38
39
40
# This run in the mattermost gitlab internal instace
variables:
AWS_DEFAULT_REGION: "us-east-1"
IMAGE_BUILD: cimg/go:1.18-node
IMAGE_AWS_CI: $CI_REGISTRY/images/aws-ci:2.1.1-1
stages:
- build
- deploy
build-package:
stage: build
image: $IMAGE_BUILD
before_script:
- CGO_ENABLED=1 go install --tags extended github.com/gohugoio/hugo@v0.92.1
script:
- make dist
artifacts:
paths:
- ./dist/html
expire_in: 2 hours
only:
refs:
- master
s3-release:
image: $IMAGE_AWS_CI
variables:
BUCKET: mattermost-developer-documentation/branches
stage: deploy
script:
- aws s3 cp dist/html s3://mattermost-developer-documentation/branches/master --recursive --cache-control no-cache --acl public-read
needs:
- build-package
only:
refs:
- master