forked from kubesphere/console
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.06 KB
/
docker.yaml
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
name: Docker Build
on:
push:
branches:
- v3.3.2-hotfix
env:
HUB: ghcr.io/scultura-org/console
jobs:
build:
runs-on: ubuntu-latest
env:
PUPPETEER_SKIP_DOWNLOAD: true
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
uses: docker/login-action@v1.10.0
with:
registry: ${{ env.HUB }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python2
run: |
sudo apt-get update
sudo apt-get install python2 -y
- name: Build
run: |
sudo npm install -g npm@latest
sudo npm install -g node-gyp@latest
sudo npm install -g node-sass@latest
yarn
yarn build
docker buildx build --platform linux/amd64,linux/arm64 -f build/Dockerfile.dapper -t ${HUB}/ks-console:v3.3.2 --push .