2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 14:21:05 +00:00

Merge pull request #542 from vrslev/push-images-instantly

ci: Push images right after build
This commit is contained in:
Revant Nandgaonkar 2021-11-04 21:27:45 +05:30 committed by GitHub
commit 915885bb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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