diff --git a/ci/tasks/bump-image-digest.sh b/ci/tasks/bump-image-digest.sh deleted file mode 100755 index b8c9006..0000000 --- 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/admin-panel/values.yaml -yq -i e '.image.git_ref = strenv(ref)' ./charts/admin-panel/values.yaml -yq -i e '.appVersion = strenv(app_version)' ./charts/admin-panel/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 admin-panel image to '${digest}'" -) diff --git a/ci/tasks/open-charts-pr.sh b/ci/tasks/open-charts-pr.sh deleted file mode 100755 index fc52dd4..0000000 --- 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/admin-panel/values.yaml) -git checkout ${BRANCH} -old_ref=$(yq e '.image.git_ref' charts/admin-panel/values.yaml) - -cat <> ../body.md -# Bump admin-panel image - -The admin-panel image will be bumped to digest: -``` -${digest} -``` - -Code diff contained in this image: - -https://github.com/GaloyMoney/admin-panel/compare/${old_ref}...${ref} -EOF - -gh pr close ${BOT_BRANCH} || true -gh pr create \ - --title "chore(deps): bump-admin-panel-image-${ref}" \ - --body-file ../body.md \ - --base ${BRANCH} \ - --head ${BOT_BRANCH} \ - --label galoybot \ - --label admin-panel diff --git a/ci/tasks/prepare-docker-build.sh b/ci/tasks/prepare-docker-build.sh deleted file mode 100755 index 1c2ec62..0000000 --- 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