This commit is contained in:
Lev 2021-11-06 20:54:23 +03:00
parent 6fc986f208
commit cafec8ff20

View file

@ -2,17 +2,17 @@ name: Build Stable
on: on:
push: push:
# branches: branches:
# - main - main
# paths: paths:
# - .github/** - .github/**
# - build/** - build/**
# - installation/** - installation/**
# - tests/** - tests/**
# - .dockerignore - .dockerignore
# - docker-bake.hcl - docker-bake.hcl
# - docker-compose.yml - docker-compose.yml
# - env* - env*
# Triggered from frappe/frappe and frappe/erpnext on releases # Triggered from frappe/frappe and frappe/erpnext on releases
repository_dispatch: repository_dispatch:
@ -20,59 +20,59 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# build_frappe: build_frappe:
# name: Frappe name: Frappe
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# strategy: strategy:
# matrix: matrix:
# version: [12, 13] version: [12, 13]
# steps: steps:
# - name: Checkout - name: Checkout
# uses: actions/checkout@v2 uses: actions/checkout@v2
# - name: Setup Buildx - name: Setup Buildx
# uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
# - name: Login - name: Login
# uses: docker/login-action@v1 uses: docker/login-action@v1
# if: github.repository == 'frappe/frappe_docker' if: github.repository == 'frappe/frappe_docker'
# with: with:
# username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Get latest versions - name: Get latest versions
# run: ./.github/scripts/get-latest-tags.sh run: ./.github/scripts/get-latest-tags.sh
# env: env:
# VERSION: ${{ matrix.version }} VERSION: ${{ matrix.version }}
# - name: Build - name: Build
# 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-stable-test targets: frappe-stable-test
# load: true load: true
# - name: Test - name: Test
# run: ./tests/test-frappe.sh run: ./tests/test-frappe.sh
# - name: Push - name: Push
# # if: github.repository == 'frappe/frappe_docker' if: github.repository == 'frappe/frappe_docker'
# 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-stable targets: frappe-stable
# push: false push: true
# env: env:
# GIT_TAG: ${{ env.FRAPPE_VERSION }} GIT_TAG: ${{ env.FRAPPE_VERSION }}
build_erpnext: build_erpnext:
name: ERPNext name: ERPNext
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: build_frappe needs: build_frappe
strategy: strategy:
matrix: matrix:
version: [13] version: [12, 13]
steps: steps:
- name: Checkout - name: Checkout
@ -109,24 +109,24 @@ jobs:
with: with:
files: docker-bake.hcl files: docker-bake.hcl
targets: erpnext-stable targets: erpnext-stable
push: false push: true
env: env:
GIT_TAG: ${{ env.ERPNEXT_VERSION }} GIT_TAG: ${{ env.ERPNEXT_VERSION }}
# release_helm: release_helm:
# name: Release Helm name: Release Helm
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# if: github.repository == 'frappe/frappe_docker' if: github.repository == 'frappe/frappe_docker'
# needs: [build_frappe, build_erpnext] needs: [build_frappe, build_erpnext]
# steps: steps:
# - name: Setup deploy key - name: Setup deploy key
# uses: webfactory/ssh-agent@v0.5.3 uses: webfactory/ssh-agent@v0.5.3
# with: with:
# ssh-private-key: ${{ secrets.HELM_DEPLOY_KEY }} ssh-private-key: ${{ secrets.HELM_DEPLOY_KEY }}
# - name: Release - name: Release
# run: | run: |
# git clone git@github.com:frappe/helm.git && cd helm git clone git@github.com:frappe/helm.git && cd helm
# pip install -r release_wizard/requirements.txt pip install -r release_wizard/requirements.txt
# ./release_wizard/wizard 13 patch --remote origin --ci ./release_wizard/wizard 13 patch --remote origin --ci