Skip to content

Commit

Permalink
refactor(ci): use common cicd library for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto committed Sep 25, 2023
1 parent 76b95cf commit e0d1c56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 263 deletions.
17 changes: 11 additions & 6 deletions build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

set -exv

source 'deployment/build-deploy-common.sh'
export CICD_TOOLS_REPO_BRANCH='add-build-helper-tools'
export CICD_TOOLS_REPO_ORG='Victoremepunto'
CICD_TOOLS_URL="https://raw.githubusercontent.com/${CICD_TOOLS_REPO_ORG}/cicd-tools/${CICD_TOOLS_REPO_BRANCH}/src/bootstrap.sh"
# shellcheck source=/dev/null
source <(curl -sSL "$CICD_TOOLS_URL") image_builder

IMAGE_NAME="${IMAGE_NAME:-quay.io/cloudservices/floorist}"
BUILD_DEPLOY_BUILD_TARGET="${BUILD_DEPLOY_BUILD_TARGET:-base}"
BACKWARDS_COMPATIBILITY=false
BUILD_PARAMS="--no-cache"
export IMAGE_NAME='quay.io/cloudservices/floorist'
# TODO: add feature: support target build stage to build: https://issues.redhat.com/browse/RHCLOUD-28505
# TODO: add feature: support caching and disable cache features https://issues.redhat.com/browse/RHCLOUD-28506
# BUILD_DEPLOY_BUILD_TARGET="${BUILD_DEPLOY_BUILD_TARGET:-base}"
# BUILD_PARAMS="--no-cache"

build_deploy_main || exit 1
cicd_tools::image_builder::build_and_push
257 changes: 0 additions & 257 deletions deployment/build-deploy-common.sh

This file was deleted.

0 comments on commit e0d1c56

Please sign in to comment.