-
Notifications
You must be signed in to change notification settings - Fork 156
61 lines (50 loc) · 1.64 KB
/
build.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
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v1
- name: Login to Image Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Node Setup
uses: actions/setup-node@v1
with:
node-version: "11.x"
- name: NPM Install
run: |
npm i
- name: Test/Verify
run: |
make tslint tsc jest
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
with:
format: YYYYMMDD-HHmm
- name: Build
env:
TIMESTAMP: "${{ steps.current-time.outputs.formattedTime }}"
run: |
REGISTRY=docker.pkg.github.com/davfoundation/missioncontrol TIMESTAMP=$TIMESTAMP make --always-make build
- name: Push Images
env:
TIMESTAMP: "${{ steps.current-time.outputs.formattedTime }}"
run: |
REGISTRY=docker.pkg.github.com/davfoundation/missioncontrol TIMESTAMP=$TIMESTAMP make --always-make push-images
- name: Commit distribution files
env:
TIMESTAMP: "${{ steps.current-time.outputs.formattedTime }}"
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add k8s/dist/.
git commit -m "Version Distribution $TIMESTAMP" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}