mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
docker build
This commit is contained in:
27
.github/workflows/build-app.yaml
vendored
27
.github/workflows/build-app.yaml
vendored
@@ -1,7 +1,12 @@
|
||||
name: Electron app
|
||||
name: Docker image
|
||||
|
||||
on: [push]
|
||||
|
||||
# on:
|
||||
# push:
|
||||
# branches:
|
||||
# - production
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -27,21 +32,9 @@ jobs:
|
||||
- name: yarn install
|
||||
run: |
|
||||
yarn install
|
||||
- name: Publish
|
||||
- name: Prepare docker image
|
||||
run: |
|
||||
yarn run build:app
|
||||
- name: Cleanup artifacts
|
||||
yarn run prepare:docker
|
||||
- name: Build docker image
|
||||
run: |
|
||||
npx rimraf "app/dist/!(*.exe|*.deb|*.AppImage|*.dmg)"
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ${{ matrix.os }}
|
||||
path: app/dist
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: "app/dist/**"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
docker build ./docker
|
||||
|
||||
Reference in New Issue
Block a user