-
Notifications
You must be signed in to change notification settings - Fork 55
65 lines (55 loc) · 1.48 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: BUILD Linux
on:
push:
tags:
- 'v*.**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Set Go module
run: |
go env -w GO111MODULE=on
- name: Check out code into current branch
uses: actions/checkout@v2
with:
submodules: true
- name: Set Node
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Node build
run: |
cd web/omsUI
yarn install --registry http://registry.npmmirror.com/
yarn run build
- name: Make all
run: |
make all
env:
release_name: ${{ github.ref_name }}
- name: Draft release
uses: softprops/action-gh-release@v1
with:
body: Release for new version
files: |
./release/*
./configs/config.yaml.example
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker login
run: |
docker login docker.pkg.github.com -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ssbeatty/oms/oms
tag_with_ref: true