Skip to content

Commit 8a58518

Browse files
committed
new: docker dev images github action
1 parent 5c4c13f commit 8a58518

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/docker-images.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build lowcoder dev image
2+
3+
on:
4+
push:
5+
branches: dev
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout lowcoder from 'dev' branch
12+
uses: actions/checkout@v2
13+
with:
14+
ref: dev
15+
- name: Install buildx
16+
id: buildx
17+
uses: crazy-max/ghaction-docker-buildx@v1
18+
with:
19+
version: latest
20+
- name: Login to docker hub
21+
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin
22+
- name: Create buildx cloud environment
23+
run: docker buildx create --driver cloud lowcoderorg/lowcoder-cloud-builder
24+
- name: Build the all-in-one image
25+
run: |
26+
NODE_ENV=production docker buildx build \
27+
--tag lowcoderorg/lowcoder-ce-frontend:dev \
28+
-f deploy/docker/Dockerfile --no-cache \
29+
--builder cloud-lowcoderorg-lowcoder-cloud-builder \
30+
--platform linux/arm64/v8,linux/amd64 \
31+
--build-arg REACT_APP_ENV=production --build-arg REACT_APP_COMMIT_ID="dev #`git rev-parse --short HEAD`" \
32+
--push .
33+

0 commit comments

Comments
 (0)