Build ERPNext images on top fresh Frappe images (#582)
Update build_stable.yml
This commit is contained in:
76
.github/workflows/build_stable.yml
vendored
76
.github/workflows/build_stable.yml
vendored
@@ -35,19 +35,25 @@ env:
|
||||
IS_AUTHORIZED_RUN: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
build_frappe:
|
||||
name: Frappe
|
||||
build:
|
||||
name: Frappe & ERPNext
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
version: [12, 13]
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
ports:
|
||||
- 5000:5000
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Login
|
||||
uses: docker/login-action@v1
|
||||
@@ -61,14 +67,36 @@ jobs:
|
||||
env:
|
||||
VERSION: ${{ matrix.version }}
|
||||
|
||||
- name: Build
|
||||
- name: Build Frappe
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
targets: frappe-stable-test
|
||||
load: true
|
||||
|
||||
- name: Push
|
||||
- name: Push Frappe to local registry
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
targets: frappe-stable-test-local
|
||||
push: true
|
||||
|
||||
- name: Test Frappe
|
||||
if: github.event_name == 'pull_request'
|
||||
run: ./tests/test-frappe.sh
|
||||
|
||||
- name: Build ERPNext
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
targets: erpnext-stable-test
|
||||
load: true
|
||||
|
||||
- name: Test ERPNext
|
||||
if: github.event_name == 'pull_request'
|
||||
run: ./tests/test-erpnext.sh
|
||||
|
||||
- name: Push Frappe
|
||||
if: env.IS_AUTHORIZED_RUN == 'true'
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
@@ -78,41 +106,7 @@ jobs:
|
||||
env:
|
||||
GIT_TAG: ${{ env.FRAPPE_VERSION }}
|
||||
|
||||
build_erpnext:
|
||||
name: ERPNext
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_frappe
|
||||
strategy:
|
||||
matrix:
|
||||
version: [12, 13]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login
|
||||
uses: docker/login-action@v1
|
||||
if: env.IS_AUTHORIZED_RUN == 'true'
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Get latest versions
|
||||
run: ./.github/scripts/get-latest-tags.sh
|
||||
env:
|
||||
VERSION: ${{ matrix.version }}
|
||||
|
||||
- name: Build
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
targets: erpnext-stable-test
|
||||
load: true
|
||||
|
||||
- name: Push
|
||||
- name: Push ERPNext
|
||||
if: env.IS_AUTHORIZED_RUN == 'true'
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
@@ -126,7 +120,7 @@ jobs:
|
||||
name: Release Helm
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request'
|
||||
needs: [build_frappe, build_erpnext]
|
||||
needs: build
|
||||
|
||||
steps:
|
||||
- name: Setup deploy key
|
||||
|
||||
Reference in New Issue
Block a user