Skip to content

Commit ca94792

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

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/docker-images.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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@v4
13+
with:
14+
ref: dev
15+
- name: Log into Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ secrets.DOCKER_LOGIN }}
19+
password: ${{ secrets.DOCKER_PASSWORD }}
20+
- name: Setup Docker Buildx with cloud driver
21+
uses: docker/setup-buildx-action@v3
22+
with:
23+
version: "lab:latest"
24+
driver: cloud
25+
endpoint: "lowcoderorg/lowcoder-cloud-builder"
26+
install: true
27+
- name: Build the all-in-one image
28+
run: |
29+
NODE_ENV=production docker buildx build \
30+
--tag lowcoderorg/lowcoder-ce-frontend:dev \
31+
-f deploy/docker/Dockerfile --no-cache \
32+
--builder cloud-lowcoderorg-lowcoder-cloud-builder \
33+
--platform linux/arm64/v8,linux/amd64 \
34+
--build-arg REACT_APP_ENV=production --build-arg REACT_APP_COMMIT_ID="dev #`git rev-parse --short HEAD`" \
35+
--push .
36+

0 commit comments

Comments
 (0)