ci: Build fixes

- Simplify builds by separating dev/stable workflows
- Fix Helm deploy key
- Remove deploy_key.env (already using deploy key in secrets)
- Fix paths matching on push and pull_request triggers
- Fix possible issues with tag difference between ERPNext and Frappe (add tag resolving step before pushing)
- Don't login, push Docker images and release Helm chart on forks
- Don't test on version 12 (there's no test for this version)
- Remove frappe-installer (from chore: use github actions #525)
- Fix badges in readme
This commit is contained in:
Lev
2021-10-31 08:32:58 +03:00
committed by GitHub
parent 37b8ccece1
commit 2da9c02d58
8 changed files with 216 additions and 452 deletions

View File

@@ -2,4 +2,7 @@
TAGS=$(git ls-remote --refs --tags --sort='v:refname' https://github.com/$REPO "v$VERSION.*")
TAG=$(echo $TAGS | tail -n1 | sed 's/.*\///')
echo $TAG
echo "GIT_TAG=$TAG" >> $GITHUB_ENV
echo "GIT_BRANCH=version-$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV

11
.github/scripts/install-deps-and-test.sh vendored Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
sudo apt-get install -y w3m
./tests/check-format.sh
./tests/docker-test.sh
# This is done to not to rebuild images in the next step
git clean -fdx