Skip to content

Commit

Permalink
remove legacy Jenkings CI/CD which will be move to gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
rauner committed Apr 10, 2024
1 parent c09cd4a commit 492f45f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 112 deletions.
84 changes: 0 additions & 84 deletions Jenkinsfile

This file was deleted.

28 changes: 0 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,3 @@ build-docker:

docker compose up app


# Deployment

APP_NAME := bot
VALUES_FILE = values.yaml
CLONE_DIR := /tmp/$(APP_NAME)/$(ENV)
REPO_NAME := buycycle-helm
TARGET_DIR := $(CLONE_DIR)/$(REPO_NAME)
GIT_USERNAME := Jenkins
GIT_EMAIL := [email protected]
BRANCH := main
REPO_URL := [email protected]:buycycle

configure-git:
git config --global user.name $(GIT_USERNAME)
git config --global user.email $(GIT_EMAIL)

clone: clear configure-git
mkdir -p $(CLONE_DIR) && cd $(CLONE_DIR) && git clone $(REPO_URL)/$(REPO_NAME).git

clear:
test -d $(TARGET_DIR) && rm -R -f $(TARGET_DIR) || true

modify:
yq -i ".image.tag = \"$(IMAGE_TAG)\"" $(TARGET_DIR)/$(ENV)/$(APP_NAME)/$(VALUES_FILE)

push: clone modify
cd $(TARGET_DIR) && git add $(ENV)/$(APP_NAME)/$(VALUES_FILE) && git commit -m "updated during build $(APP_NAME) $(IMAGE_TAG)" && git pull --rebase && git push -u origin $(BRANCH)

0 comments on commit 492f45f

Please sign in to comment.