-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (40 loc) · 1.19 KB
/
builder.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
name: Docker Builder
on:
push:
branches:
- master
- main
release:
types: [created]
jobs:
build:
name: Planetfarm Docker build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Node 14.x
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Docker login
run: docker login -u ${{ secrets.DOCKERUSERNAME }} -p ${{ secrets.DOCKERAPIKEY }}
- name: Docker build
run: |
export CI=false
sudo npm install -g @treehouses/cli
export gitter_channel="${{ secrets.CHANNEL }}"
node -v
npm -v
npm install
npm run build
ls -la build
export DOCKER_CLI_EXPERIMENTAL=enabled
source .github/workflows/utils.sh
repo="earthowned/planetfarms"
build_image "treehouses/nginx" amd64 "$repo"
deploy_image "$repo" amd64
echo "https://hub.docker.com/r/earthowned/planetfarms-tags/tags"
treehouses feedback "new earthowned/planetfarms check https://hub.docker.com/r/earthowned/planetfarms-tags/tags"