-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
52 lines (49 loc) · 1.15 KB
/
bitbucket-pipelines.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
# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: rhinogram/node-awscli
definitions:
setup: &setup
name: Setup and install
image: node:8
caches:
- node
script:
- yarn
artifacts:
- node_modules/**
tests: &tests
name: Running tests
image: node:8
script:
- yarn test
build: &build
name: Build
image: node:8
script:
- yarn build
artifacts:
- build/**
package: &package
name: Package
image: atlassian/pipelines-awscli
script:
- cd build
- rm -rf media/*
- VERSION=$BITBUCKET_BUILD_NUMBER
- tar -zcvf ../kiosk-interface-$VERSION.tar.gz .
- echo "Copy to S3"
- aws s3 cp ../kiosk-interface-$VERSION.tar.gz s3://$S3_BUCKET/
pipelines:
default:
- step: *setup
- step: *tests
- step: *build
branches:
master:
- step: *setup
- step: *tests
- step: *build
- step: *package