Skip to content

Commit

Permalink
Change deployment directory and use mta-deploy in deploy-apps.sh
Browse files Browse the repository at this point in the history
 - Update deploy function to change into the autoscaler directory instead of metricsforwarder
 - Replace `make cf-push` with `make mta-deploy` for deploying autoscaler apps
 - Mark `mta-deploy` as .PHONY in Makefile, replacing `cf-push`
  • Loading branch information
bonzofenix committed Aug 9, 2024
1 parent be6e1cc commit ce1d1ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ci/autoscaler/scripts/deploy-apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ source "${script_dir}/vars.source.sh"

function deploy() {
log "Deploying autoscaler apps for bosh deployment '${deployment_name}' "
pushd "${autoscaler_dir}/src/autoscaler/metricsforwarder" > /dev/null
pushd "${autoscaler_dir}/src/autoscaler" > /dev/null
log "Deploying autoscaler apps"
make cf-push
make mta-deploy
popd > /dev/null
}

Expand Down
2 changes: 1 addition & 1 deletion src/autoscaler/metricsforwarder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ METRICSFORWARDER_APPNAME ?= "metricsforwarder"
METRICSFORWARDER_HOSTNAME ?= $(METRICSFORWARDER_APPNAME)
SYSTEM_DOMAIN ?= "autoscaler.app-runtime-interfaces.ci.cloudfoundry.org"

.PHONY: cf-push
.PHONY: mta-deploy
cf-push: fetch-config cf-build set-security-group
cf push $(METRICSFORWARDER_APPNAME) -b binary_buildpack -p . --no-start --no-route -c "./metricsforwarder -c metricsforwarder.yml"
cf create-route "$(SYSTEM_DOMAIN)" --hostname "$(METRICSFORWARDER_HOSTNAME)"
Expand Down

0 comments on commit ce1d1ef

Please sign in to comment.