diff --git a/.github/workflows/build_bench.yml b/.github/workflows/build_bench.yml new file mode 100644 index 00000000..72e8049f --- /dev/null +++ b/.github/workflows/build_bench.yml @@ -0,0 +1,44 @@ +name: Bench + +on: + pull_request: + branches: + - main + paths: + - build/bench/** + - docker-bake.hcl + + schedule: + # Every day at 12:00 pm + - cron: 0 0 * * * + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and test + uses: docker/bake-action@v1.6.0 + with: + targets: bench-test + + - name: Login + if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Push + if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} + uses: docker/bake-action@v1.6.0 + with: + targets: bench + push: true diff --git a/.github/workflows/build_develop.yml b/.github/workflows/build_develop.yml index 554c4b3e..1197117c 100644 --- a/.github/workflows/build_develop.yml +++ b/.github/workflows/build_develop.yml @@ -1,4 +1,4 @@ -name: Build Develop +name: Develop build on: pull_request: @@ -21,36 +21,7 @@ on: workflow_dispatch: jobs: - build_bench: - name: Bench - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup Buildx - uses: docker/setup-buildx-action@v1 - - - name: Build and test - uses: docker/bake-action@v1.6.0 - with: - targets: bench-test - - - name: Login - if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Push - if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} - uses: docker/bake-action@v1.6.0 - with: - targets: bench - push: true - - build_main: + build: name: Frappe and ERPNext uses: vrslev/frappe_docker/.github/workflows/docker-build-push.yml@beautify with: diff --git a/.github/workflows/build_stable.yml b/.github/workflows/build_stable.yml index 8bb4a911..15631658 100644 --- a/.github/workflows/build_stable.yml +++ b/.github/workflows/build_stable.yml @@ -1,4 +1,4 @@ -name: Build Stable +name: Stable build on: pull_request: