-
Notifications
You must be signed in to change notification settings - Fork 28
52 lines (49 loc) · 1.26 KB
/
release.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
name: Release Action
on:
push:
tags:
- "v*"
jobs:
build-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Print env
run: |
corepack enable
echo "go version:" $(go version)
echo "node version:" $(node -v)
echo "npm version:" $(npm -v)
echo "pnpm version:" $(pnpm -v)
- name: Bootstrap
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make bootstrap
echo "go-bindata version:" $(go-bindata -version)
- name: Build frontend assets
run: |
make build-web
export PATH=$PATH:$(go env GOPATH)/bin
make build-assets
- name: Build all arch binary
run: make build-all-arch
- name: Upload to Release
run: |
make pack-arch TAG=${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
push: true
tags: xgheaven/homebox:latest
context: .