Skip to content

Commit

Permalink
Fix clean makefile target (#11)
Browse files Browse the repository at this point in the history
* Fix clean makefile target

* Add makefile support for custom docker image
  • Loading branch information
teddyphreak authored Oct 17, 2023
1 parent eff3e14 commit 75c44b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: all ${MAKECMDGOALS}

MOLECULE_SCENARIO ?= ubuntu
MOLECULE_DOCKER_IMAGE ?= ubuntu2004
GALAXY_API_KEY ?=
GITHUB_REPOSITORY ?= $$(git config --get remote.origin.url | cut -d: -f 2 | cut -d. -f 1)
GITHUB_ORG = $$(echo ${GITHUB_REPOSITORY} | cut -d/ -f 1)
Expand Down Expand Up @@ -33,13 +34,13 @@ collections:
requirements: roles collections

dependency create prepare converge idempotence side-effect verify destroy login reset:
poetry run molecule $@ -s ${MOLECULE_SCENARIO}
MOLECULE_DOCKER_IMAGE=${MOLECULE_DOCKER_IMAGE} poetry run molecule $@ -s ${MOLECULE_SCENARIO}

ignore:
poetry run ansible-lint --generate-ignore

clean: destroy reset
poetry env remove $$(which python)
@poetry env remove $$(which python) >/dev/null 2>&1 || exit 0

publish:
@echo publishing repository ${GITHUB_REPOSITORY}
Expand Down

0 comments on commit 75c44b8

Please sign in to comment.