-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: docker dev images github action
- Loading branch information
1 parent
5c4c13f
commit ca94792
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build lowcoder dev image | ||
|
||
on: | ||
push: | ||
branches: dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout lowcoder from 'dev' branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: dev | ||
- name: Log into Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_LOGIN }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Setup Docker Buildx with cloud driver | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: "lab:latest" | ||
driver: cloud | ||
endpoint: "lowcoderorg/lowcoder-cloud-builder" | ||
install: true | ||
- name: Build the all-in-one image | ||
run: | | ||
NODE_ENV=production docker buildx build \ | ||
--tag lowcoderorg/lowcoder-ce-frontend:dev \ | ||
-f deploy/docker/Dockerfile --no-cache \ | ||
--builder cloud-lowcoderorg-lowcoder-cloud-builder \ | ||
--platform linux/arm64/v8,linux/amd64 \ | ||
--build-arg REACT_APP_ENV=production --build-arg REACT_APP_COMMIT_ID="dev #`git rev-parse --short HEAD`" \ | ||
--push . | ||