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:
5
.github/scripts/get-latest-tag.sh
vendored
5
.github/scripts/get-latest-tag.sh
vendored
@@ -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
11
.github/scripts/install-deps-and-test.sh
vendored
Executable 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
|
||||
Reference in New Issue
Block a user