mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
enable PR build
This commit is contained in:
parent
56081eb02e
commit
968e152f9e
2 changed files with 19 additions and 14 deletions
28
.github/workflows/build_develop.yml
vendored
28
.github/workflows/build_develop.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
5
.github/workflows/docker-build-push.yml
vendored
5
.github/workflows/docker-build-push.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue