You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
name: DockerBuild
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node_version: '13.x'
|
|
|
|
- run: |
|
|
|
|
yarn
|
|
|
|
yarn add webpack webpack-cli -D
|
|
|
|
yarn build
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: hydro
|
|
|
|
path: .build
|
|
|
|
- run: |
|
|
|
|
cd ui
|
|
|
|
yarn
|
|
|
|
yarn add webpack webpack-cli -D
|
|
|
|
yarn build
|
|
|
|
cd ..
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: .uibuild
|
|
|
|
path: .uibuild
|
|
|
|
- run: |
|
|
|
|
yarn add pkg -D
|
|
|
|
yarn run pack
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: Hydro_linux_amd64
|
|
|
|
path: hydro-linux
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: Hydro_macos_amd64
|
|
|
|
path: hydro-macos
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: Hydro_win_amd64.exe
|
|
|
|
path: hydro-win.exe
|
|
|
|
- uses: elgohr/Publish-Docker-Github-Action@master
|
|
|
|
with:
|
|
|
|
name: hydrooj/hydro:alpine
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
dockerfile: Dockerfile
|