2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-11 09:35:12 +00:00

ci: Push images right after build

This fixes the bug when ERPNext images are built upon old Frappe images and test are ran on old images
This commit is contained in:
Lev 2021-11-04 15:24:08 +03:00
parent e685dc5ebc
commit 3c0f08652e
2 changed files with 4 additions and 46 deletions

View File

@ -60,6 +60,7 @@ jobs:
files: docker-bake.hcl
targets: frappe-develop
load: true
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
- name: Build ERPNext images
uses: docker/bake-action@v1.6.0
@ -67,22 +68,7 @@ jobs:
files: docker-bake.hcl
targets: erpnext-develop
load: true
push: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
- name: Test
run: ./.github/scripts/install-deps-and-test.sh
- name: Push Frappe images
if: github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request'
uses: docker/bake-action@v1.6.0
with:
files: docker-bake.hcl
targets: frappe-develop
push: true
- name: Push ERPNext images
if: github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request'
uses: docker/bake-action@v1.6.0
with:
files: docker-bake.hcl
targets: erpnext-develop
push: true

View File

@ -48,6 +48,7 @@ jobs:
files: docker-bake.hcl
targets: frappe-stable
load: true
push: true
- name: Setup ERPNext variables
run: ./.github/scripts/get-latest-tag.sh
@ -61,41 +62,12 @@ jobs:
files: docker-bake.hcl
targets: erpnext-stable
load: true
push: true
- name: Test
if: ${{ matrix.version != 12 }}
run: ./.github/scripts/install-deps-and-test.sh
- name: Setup Frappe variables
if: github.repository == 'frappe/frappe_docker'
run: ./.github/scripts/get-latest-tag.sh
env:
REPO: frappe/frappe
VERSION: ${{ matrix.version }}
- name: Push Frappe images
if: github.repository == 'frappe/frappe_docker'
uses: docker/bake-action@v1.6.0
with:
files: docker-bake.hcl
targets: frappe-stable
push: true
- name: Setup ERPNext variables
if: github.repository == 'frappe/frappe_docker'
run: ./.github/scripts/get-latest-tag.sh
env:
REPO: frappe/erpnext
VERSION: ${{ matrix.version }}
- name: Push ERPNext images
if: github.repository == 'frappe/frappe_docker'
uses: docker/bake-action@v1.6.0
with:
files: docker-bake.hcl
targets: erpnext-stable
push: true
- name: Setup Helm deploy key
if: github.repository == 'frappe/frappe_docker'
uses: webfactory/ssh-agent@v0.5.3