mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 22:31:07 +00:00
ci: Uncomment for-production code
This commit is contained in:
parent
078a7f5602
commit
a3cf159439
44
.github/workflows/docker.yml
vendored
44
.github/workflows/docker.yml
vendored
@ -2,17 +2,17 @@ name: Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - main
|
- main
|
||||||
# paths:
|
paths:
|
||||||
# - github/workflows/docker.yml
|
- github/workflows/docker.yml
|
||||||
# - build/**
|
- build/**
|
||||||
# - installation/**
|
- installation/**
|
||||||
# - tests/**
|
- tests/**
|
||||||
# - .dockerignore
|
- .dockerignore
|
||||||
# - docker-bake.hcl
|
- docker-bake.hcl
|
||||||
# - docker-compose.yml
|
- docker-compose.yml
|
||||||
# - env*
|
- env*
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@ -87,17 +87,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v1
|
||||||
# - uses: docker/login-action@v1
|
- uses: docker/login-action@v1
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/bake-action@v1.6.0
|
uses: docker/bake-action@v1.6.0
|
||||||
with:
|
with:
|
||||||
files: docker-bake.hcl
|
files: docker-bake.hcl
|
||||||
targets: frappe-bench
|
targets: frappe-bench
|
||||||
# push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
build_main:
|
build_main:
|
||||||
name: Frappe and ERPNext images
|
name: Frappe and ERPNext images
|
||||||
@ -109,10 +109,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v1
|
||||||
# - uses: docker/login-action@v1
|
- uses: docker/login-action@v1
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Get latest Frappe tag
|
- name: Get latest Frappe tag
|
||||||
if: needs.resolve-matrix.outputs.build-target == 'stable'
|
if: needs.resolve-matrix.outputs.build-target == 'stable'
|
||||||
@ -168,7 +168,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: docker-bake.hcl
|
files: docker-bake.hcl
|
||||||
targets: ${{ format('{0}-{1}', 'frappe', needs.resolve-matrix.outputs.build-target )}}
|
targets: ${{ format('{0}-{1}', 'frappe', needs.resolve-matrix.outputs.build-target )}}
|
||||||
# push: true
|
push: true
|
||||||
|
|
||||||
- name: Push ERPNext images
|
- name: Push ERPNext images
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@ -176,7 +176,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: docker-bake.hcl
|
files: docker-bake.hcl
|
||||||
targets: ${{ format('{0}-{1}', 'erpnext', needs.resolve-matrix.outputs.build-target )}}
|
targets: ${{ format('{0}-{1}', 'erpnext', needs.resolve-matrix.outputs.build-target )}}
|
||||||
# push: true
|
push: true
|
||||||
|
|
||||||
- name: Release Helm Chart
|
- name: Release Helm Chart
|
||||||
if: needs.resolve-matrix.outputs.build-target == 'stable'
|
if: needs.resolve-matrix.outputs.build-target == 'stable'
|
||||||
|
Loading…
Reference in New Issue
Block a user