mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
switch from env var to input for action
This commit is contained in:
parent
9c3cea17b9
commit
d8657d5d82
3 changed files with 7 additions and 9 deletions
3
.github/workflows/build_develop.yml
vendored
3
.github/workflows/build_develop.yml
vendored
|
|
@ -28,8 +28,7 @@ jobs:
|
|||
repo: erpnext
|
||||
version: develop
|
||||
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
||||
env:
|
||||
MULTI_ARCH_BUILD: ${{ github.event_name != 'pull_request' }}
|
||||
multiarch: ${{ github.event_name != 'pull_request' }}
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
|
|
|||
6
.github/workflows/build_stable.yml
vendored
6
.github/workflows/build_stable.yml
vendored
|
|
@ -40,8 +40,7 @@ jobs:
|
|||
repo: erpnext
|
||||
version: "13"
|
||||
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
||||
env:
|
||||
MULTI_ARCH_BUILD: ${{ github.event_name != 'pull_request' }}
|
||||
multiarch: ${{ github.event_name != 'pull_request' }}
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
|
@ -52,8 +51,7 @@ jobs:
|
|||
repo: erpnext
|
||||
version: "13"
|
||||
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
||||
env:
|
||||
MULTI_ARCH_BUILD: ${{ github.event_name != 'pull_request' }}
|
||||
multiarch: ${{ github.event_name != 'pull_request' }}
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
|
|
|||
7
.github/workflows/docker-build-push.yml
vendored
7
.github/workflows/docker-build-push.yml
vendored
|
|
@ -14,9 +14,10 @@ on:
|
|||
push:
|
||||
required: true
|
||||
type: boolean
|
||||
env:
|
||||
MULTI_ARCH_BUILD:
|
||||
multiarch:
|
||||
required: true
|
||||
type: boolean
|
||||
description: "toggle for multi arch build"
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME:
|
||||
required: true
|
||||
|
|
@ -57,7 +58,7 @@ jobs:
|
|||
push: true
|
||||
env:
|
||||
REGISTRY_USER: localhost:5000/frappe
|
||||
MULTI_ARCH_BUILD: ${{ env.MULTI_ARCH_BUILD }}
|
||||
MULTI_ARCH_BUILD: ${{ input.multiarch }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v3
|
||||
|
|
|
|||
Loading…
Reference in a new issue