Skip to content

Commit

Permalink
Changes from PR#337: Rollback changes in mta release
Browse files Browse the repository at this point in the history
Change deployment path in Makefile for autoscaler to use relative DEST path
  • Loading branch information
bonzofenix authored and asalan316 committed Nov 27, 2024
1 parent 23e84f2 commit 3ad25bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/autoscaler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ clean:
mta-deploy: mta-build build-extension-file
$(MAKE) -f metricsforwarder/Makefile set-security-group
@echo "Deploying with extension file: $(EXTENSION_FILE)"
@cf deploy $(MAKEFILE_DIR)/$(DEST)/*.mtar --version-rule ALL -f --delete-services -e $(EXTENSION_FILE)
@cf deploy $(DEST)/*.mtar --version-rule ALL -f --delete-services -e $(EXTENSION_FILE)


build-extension-file:
Expand All @@ -173,10 +173,11 @@ mta-logs:
.PHONY: mta-build
mta-build: mta-build-clean
@echo "bulding mtar file for version: $(VERSION)"
@cp mta.tpl.yaml mta.yaml
@sed -i 's/VERSION/$(VERSION)/g' mta.yaml
@mbt build
@mkdir -p "${PWD}/$(DEST)" && mv ${PWD}/mta_archives/com.github.cloudfoundry.app-autoscaler-release_$(VERSION).mtar ${PWD}/$(DEST)/app-autoscaler-release-v$(VERSION).mtar
cp mta.tpl.yaml mta.yaml
sed -i 's/VERSION/$(VERSION)/g' mta.yaml
mkdir -p $(DEST)
mbt build
@mv mta_archives/com.github.cloudfoundry.app-autoscaler-release_$(VERSION).mtar $(DEST)/app-autoscaler-release-v$(VERSION).mtar

mta-build-clean:
rm -rf mta_archives

0 comments on commit 3ad25bf

Please sign in to comment.