mirror of https://github.com/Xhofe/alist
💚 setup docker
parent
bfec01e837
commit
1a3b931727
|
@ -15,11 +15,19 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
|
||||||
|
- name: Setup docker
|
||||||
|
uses: docker-practice/actions-setup-docker@master
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -33,11 +41,6 @@ jobs:
|
||||||
ref: v2
|
ref: v2
|
||||||
path: alist-web
|
path: alist-web
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '16'
|
|
||||||
|
|
||||||
- name: Set up xgo
|
- name: Set up xgo
|
||||||
run: |
|
run: |
|
||||||
docker pull techknowlogick/xgo:latest
|
docker pull techknowlogick/xgo:latest
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -9,7 +9,7 @@ gitCommit=$(git log --pretty=format:"%h" -1)
|
||||||
if [ "$1" == "release" ]; then
|
if [ "$1" == "release" ]; then
|
||||||
gitTag=$(git describe --abbrev=0 --tags)
|
gitTag=$(git describe --abbrev=0 --tags)
|
||||||
else
|
else
|
||||||
gitTag="beta"
|
gitTag=$(git describe --abbrev=0 --tags)-next
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ldflags="\
|
ldflags="\
|
||||||
|
|
Loading…
Reference in New Issue