summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2023-09-25 15:02:20 +0200
committerGitHub <noreply@github.com>2023-09-25 15:02:20 +0200
commit9ed527eb26820caa2a8a18e93cf396e345f3c679 (patch)
tree0cc346bda35d1119da74d1882ed4c5c6917756eb /Makefile
parentFix bug, None was used instead of empty for DB outage (#14463) (diff)
downloadawx-9ed527eb26820caa2a8a18e93cf396e345f3c679.tar.xz
awx-9ed527eb26820caa2a8a18e93cf396e345f3c679.zip
Consolidate image and server setup in several checks (#14477)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 1 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 6f08a6018b..25005bdc9d 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ I18N_FLAG_FILE = .i18n_built
sdist \
ui-release ui-devel \
VERSION PYTHON_VERSION docker-compose-sources \
- .git/hooks/pre-commit github_ci_setup github_ci_runner
+ .git/hooks/pre-commit
clean-tmp:
rm -rf tmp/
@@ -324,21 +324,10 @@ test:
cd awxkit && $(VENV_BASE)/awx/bin/tox -re py3
awx-manage check_migrations --dry-run --check -n 'missing_migration_file'
-## Login to Github container image registry, pull image, then build image.
-github_ci_setup:
- # GITHUB_ACTOR is automatic github actions env var
- # CI_GITHUB_TOKEN is defined in .github files
- echo $(CI_GITHUB_TOKEN) | docker login ghcr.io -u $(GITHUB_ACTOR) --password-stdin
- docker pull $(DEVEL_IMAGE_NAME) || : # Pre-pull image to warm build cache
- $(MAKE) docker-compose-build
-
## Runs AWX_DOCKER_CMD inside a new docker container.
docker-runner:
docker run -u $(shell id -u) --rm -v $(shell pwd):/awx_devel/:Z --workdir=/awx_devel $(DEVEL_IMAGE_NAME) $(AWX_DOCKER_CMD)
-## Builds image and runs AWX_DOCKER_CMD in it, mainly for .github checks.
-github_ci_runner: github_ci_setup docker-runner
-
test_collection:
rm -f $(shell ls -d $(VENV_BASE)/awx/lib/python* | head -n 1)/no-global-site-packages.txt
if [ "$(VENV_BASE)" ]; then \