mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: remove build on PR due to hight build time
This commit is contained in:
22
.github/workflows/pull-request.yml
vendored
22
.github/workflows/pull-request.yml
vendored
@@ -31,28 +31,6 @@ jobs:
|
|||||||
- name: Run Build
|
- name: Run Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
|
||||||
build-docker-on-pr:
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
needs: build-app
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out the code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Prepare .env file
|
|
||||||
run: |
|
|
||||||
cp .env.production.example .env.production
|
|
||||||
|
|
||||||
- name: Run custom Docker build script
|
|
||||||
run: |
|
|
||||||
chmod +x ./docker/build.sh
|
|
||||||
echo "Building Docker image for ${{ github.base_ref }}"
|
|
||||||
./docker/build.sh ${{ github.base_ref == 'canary' && 'canary' || '' }}
|
|
||||||
|
|
||||||
build-and-push-docker-on-push:
|
build-and-push-docker-on-push:
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user