docker build

This commit is contained in:
Jan Prochazka
2020-03-15 09:35:34 +01:00
parent ae3b826826
commit 3a8c961920
7 changed files with 155 additions and 26 deletions

View File

@@ -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