diff --git a/ci/tasks/bump-image-digest.sh b/ci/tasks/bump-image-digest.sh deleted file mode 100755 index ba32a77e..00000000 --- a/ci/tasks/bump-image-digest.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -set -eu - -export digest=$(cat ./edge-image/digest) -export ref=$(cat ./repo/.git/short_ref) -export app_version=$(cat version/version) - -pushd charts-repo - -yq -i e '.image.digest = strenv(digest)' ./charts/galoy-pay/values.yaml -yq -i e '.image.git_ref = strenv(ref)' ./charts/galoy-pay/values.yaml -yq -i e '.appVersion = strenv(app_version)' ./charts/galoy-pay/Chart.yaml - -if [[ -z $(git config --global user.email) ]]; then - git config --global user.email "bot@galoy.io" -fi -if [[ -z $(git config --global user.name) ]]; then - git config --global user.name "CI Bot" -fi - -( - cd $(git rev-parse --show-toplevel) - git merge --no-edit ${BRANCH} - git add -A - git status - git commit -m "chore(deps): bump galoy-pay image to '${digest}'" -) diff --git a/ci/tasks/open-charts-pr.sh b/ci/tasks/open-charts-pr.sh deleted file mode 100755 index 503c531f..00000000 --- a/ci/tasks/open-charts-pr.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -set -eu - -export digest=$(cat ./edge-image/digest) - -pushd charts-repo - -ref=$(yq e '.image.git_ref' charts/galoy-pay/values.yaml) -git checkout ${BRANCH} -old_ref=$(yq e '.image.git_ref' charts/galoy-pay/values.yaml) - -cat <> ../body.md -# Bump galoy-pay image - -The galoy-pay image will be bumped to digest: -``` -${digest} -``` - -Code diff contained in this image: - -https://github.com/GaloyMoney/galoy-pay/compare/${old_ref}...${ref} -EOF - -gh pr close ${BOT_BRANCH} || true -gh pr create \ - --title "chore(deps): bump-galoy-pay-image-${ref}" \ - --body-file ../body.md \ - --base ${BRANCH} \ - --head ${BOT_BRANCH} \ - --label galoybot \ - --label galoy-pay diff --git a/ci/tasks/prepare-docker-build.sh b/ci/tasks/prepare-docker-build.sh deleted file mode 100755 index 1c2ec624..00000000 --- a/ci/tasks/prepare-docker-build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -echo "COMMITHASH=$(cat repo/.git/ref)" >> repo/.env -echo "BUILDTIME=$(date -u '+%F-%T')" >> repo/.env diff --git a/ci/tasks/vendor/prep-release-src.sh b/ci/tasks/vendor/prep-release-src.sh deleted file mode 100755 index 9dba51a4..00000000 --- a/ci/tasks/vendor/prep-release-src.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -set -eu - -# ------------ CHANGELOG ------------ - -pushd repo - -# First time -if [[ $(cat ../version/version) == "0.0.0" ]]; then - git cliff --config ../pipeline-tasks/ci/config/vendor/git-cliff.toml > ../artifacts/gh-release-notes.md - -# Fetch changelog from last ref -else - export prev_ref=$(git rev-list -n 1 $(cat ../version/version)) - export new_ref=$(git rev-parse HEAD) - - git cliff --config ../pipeline-tasks/ci/config/vendor/git-cliff.toml $prev_ref..$new_ref > ../artifacts/gh-release-notes.md -fi - -popd - -# Generate Changelog -echo "CHANGELOG:" -echo "-------------------------------" -cat artifacts/gh-release-notes.md -echo "-------------------------------" - -# ------------ BUMP VERSION ------------ - -echo -n "Prev Version: " -cat version/version -echo "" - -# Initial Version -if [[ $(cat version/version) == "0.0.0" ]]; then - echo "0.1.0" > version/version -# Figure out proper version to release -elif [[ $(cat artifacts/gh-release-notes.md | grep breaking) != '' ]] || [[ $(cat artifacts/gh-release-notes.md | grep feature) != '' ]]; then - echo "Breaking change / Feature Addition found, bumping minor version..." - bump2version minor --current-version $(cat version/version) --allow-dirty version/version -else - echo "Only patches and fixes found - no breaking changes, bumping patch version..." - bump2version patch --current-version $(cat version/version) --allow-dirty version/version -fi - -echo -n "Release Version: " -cat version/version -echo "" - -# ------------ ARTIFACTS ------------ - -cat version/version > artifacts/gh-release-tag -echo "v$(cat version/version) Release" > artifacts/gh-release-name