Skip to content

Commit

Permalink
[CI] Fix factory deploy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau authored and rldhont committed Dec 6, 2024
1 parent 802a050 commit 6f6c3b9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#
# expected variables in the CI environment
# - FACTORY_SCRIPTS = path to scripts of the factory
# - REGISTRY_URL = url of the docker registry

STAGE=build
Expand Down Expand Up @@ -184,11 +183,6 @@ ifndef REGISTRY_URL
$(error REGISTRY_URL is undefined)
endif

check-factory:
ifndef FACTORY_SCRIPTS
$(error FACTORY_SCRIPTS is undefined)
endif

stage: $(DIST)

ci_package: $(ZIP_PACKAGE) $(GENERIC_PACKAGE_PATH) $(ZIP_DEMO_PACKAGE)
Expand Down Expand Up @@ -247,11 +241,11 @@ docker-clean-all:
docker rmi -f $(shell docker images $(DOCKER_BUILDIMAGE) -q) || true

docker-release: check-factory
cd docker && $(FACTORY_SCRIPTS)/release-image.sh $(DOCKER_RELEASE_PACKAGE_NAME)
cd docker && $(FACTORY_SCRIPTS)/push-to-docker-hub.sh --clean
cd docker && release-image $(DOCKER_RELEASE_PACKAGE_NAME)
cd docker && push-to-docker-hub --clean

docker-hub:
cd docker && $(FACTORY_SCRIPTS)/push-to-docker-hub.sh --clean
cd docker && push-to-docker-hub --clean

php-cs-fixer-test:
php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run --diff
Expand Down

0 comments on commit 6f6c3b9

Please sign in to comment.