Skip to content

Commit

Permalink
new: docker dev images github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ludomikula committed Sep 2, 2024
1 parent 5c4c13f commit ca94792
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker-images.yml
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 .

0 comments on commit ca94792

Please sign in to comment.