Skip to content

Commit 44bbbf4

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

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/docker-images.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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: Get commit short SHA
16+
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
17+
- name: Log into Docker Hub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKER_LOGIN }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
- name: Setup Docker Buildx with cloud driver
23+
uses: docker/setup-buildx-action@v3
24+
with:
25+
version: "lab:latest"
26+
driver: cloud
27+
endpoint: "lowcoderorg/lowcoder-cloud-builder"
28+
- name: Build and push the all-in-one image
29+
uses: docker/build-push-action@v6
30+
env:
31+
NODE_ENV: production
32+
with:
33+
file: ./deploy/docker/Dockerfile
34+
build-args: |
35+
REACT_APP_ENV=production
36+
REACT_APP_COMMIT_ID="dev #${SHORT_SHA}"
37+
platforms: |
38+
linux/amd64
39+
linux/arm64
40+
push: true
41+
tags: lowcoderorg/lowcoder-ce:dev
42+

0 commit comments

Comments
 (0)