2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-15 01:24:04 +00:00
frappe_docker/.github/workflows/build_develop.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

2021-12-17 08:53:26 +00:00
name: Build Develop
on:
2021-12-17 12:34:31 +00:00
pull_request:
branches:
- main
paths:
- build/nginx/**
- build/socketio/**
- build/worker/**
- overrides/**
- tests/**
- compose.yaml
- docker-bake.hcl
- example.env
2021-12-17 08:53:26 +00:00
2021-12-17 12:34:31 +00:00
schedule:
# Every day at 12:00 pm
- cron: 0 0 * * *
2021-12-17 08:53:26 +00:00
2021-12-17 12:34:31 +00:00
workflow_dispatch:
2021-12-17 08:53:26 +00:00
jobs:
build_bench:
2021-12-17 08:56:00 +00:00
name: Bench
2021-12-17 08:53:26 +00:00
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:
2021-12-17 08:56:00 +00:00
name: Frappe and ERPNext
2021-12-17 08:53:26 +00:00
uses: vrslev/frappe_docker/.github/workflows/docker-build-push.yml@beautify
with:
repo: erpnext
version: develop
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}