forked from hound-search/hound
-
-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (41 loc) · 1.14 KB
/
main.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
name: Rebuilding Docker Images
on:
push:
branches:
- master
paths:
- "**"
- "!ui/bindata.go"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Setup Go for use with actions
uses: actions/setup-go@v2
with:
go-version: '1.13.8'
- uses: actions/checkout@v1
- name: make
run: |
mkdir -p $(go env GOPATH)/src/github.com/itpp-labs/
ln -s $(pwd) $(go env GOPATH)/src/github.com/itpp-labs/hound
make
- name: Build and publish DEV Docker Image
uses: elgohr/Publish-Docker-Github-Action@master
env:
DEV: yes
with:
name: itpp-labs/hound/dev
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
buildargs: DEV
- name: Build and publish Production Docker Image
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: itpp-labs/hound/production
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}