enable PR build

This commit is contained in:
Al Majumdar 2022-04-01 15:05:35 +05:30
parent 56081eb02e
commit 968e152f9e
2 changed files with 19 additions and 14 deletions

View file

@ -1,20 +1,19 @@
name: Develop build
on:
# toggle commenting to run on PR
# pull_request:
# branches:
# - main
# paths:
# - images/nginx/**
# - images/socketio/**
# - images/worker/**
# - overrides/**
# - tests/**
# - compose.yaml
# - docker-bake.hcl
# - example.env
# - .github/workflows/build_develop.yml
pull_request:
branches:
- main
paths:
- images/nginx/**
- images/socketio/**
- images/worker/**
- overrides/**
- tests/**
- compose.yaml
- docker-bake.hcl
- example.env
- .github/workflows/build_develop.yml
schedule:
# Every day at 12:00 pm
@ -28,6 +27,7 @@ jobs:
with:
repo: erpnext
version: develop
platform: linux/amd64
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}

View file

@ -14,6 +14,9 @@ on:
push:
required: true
type: boolean
platform:
required: true
type: string
secrets:
DOCKERHUB_USERNAME:
required: true
@ -51,7 +54,9 @@ jobs:
- name: Build
uses: docker/bake-action@v1.7.0
with:
set: "*.platform=${{ inputs.platform }}"
push: true
env:
REGISTRY_USER: localhost:5000/frappe