-
Notifications
You must be signed in to change notification settings - Fork 1
102 lines (91 loc) · 3.05 KB
/
dockerimage-dev.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Docker-Image-Build-CI-DEV
on: push
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the tagged Docker image
run: docker build . --file Dockerfile --tag cyborgbackup/cyborgbackup-ui:dev-$(echo $GITHUB_SHA | cut -c 1-6)
- name: Tag Docker Image to Develop
run: docker tag cyborgbackup/cyborgbackup-ui:dev-$(echo $GITHUB_SHA | cut -c 1-6) cyborgbackup/cyborgbackup-ui:develop
- name: Push the tagged Docker image
run: docker push --all-tags cyborgbackup/cyborgbackup-ui
debian-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
- name: Build Debian package
uses: dawidd6/action-debian-package@v1
with:
artifacts_directory: output
- uses: actions/upload-artifact@v1
with:
name: debian-package
path: output
linux-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: npm install, build, and test
run: |
npm install
npm run build:electron
- name: Electron-Builder Linux App
run: npm run package:linux
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-linux-app.AppImage
path: packages/cyborgbackup-*.AppImage
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-linux-app.snap
path: packages/cyborgbackup-*.snap
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-linux-app.deb
path: packages/cyborgbackup-*.deb
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-linux-app.rpm
path: packages/cyborgbackup-*.rpm
windows-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: npm install, build, and test
run: |
sudo apt update
sudo apt install -y wine
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt -f install
sudo apt install -y libgcc-s1:i386 libgcc-s1:i386 libstdc++6:i386 wine32
npm install
npm run build:electron
- name: Electron-Builder Windows App
run: npm run package:win
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-win-app.exe
path: packages/cyborgbackup.*.exe
macos-app:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: npm install, build, and test
run: |
npm install
npm run build:electron
- name: Electron-Builder MacOS App
run: npm run package:mac
- uses: actions/upload-artifact@v2
with:
name: cyborgbackup-mac-app.dmg
path: packages/cyborgbackup.*.dmg