Add login command to push target

This commit is contained in:
Ethan Paul 2024-03-11 14:08:14 -04:00
parent cad698670e
commit df1b70a549
Signed by: enpaul
GPG Key ID: 9B6D99E4CFA31867

View File

@ -16,6 +16,7 @@ image: ## Build image
podman build . --tag $(REPOSITORY):v$(SEMAPHORE_VERSION) --build-arg "OPENTOFU_VERSION=$(OPENTOFU_VERSION)" --build-arg "SEMAPHORE_VERSION=$(SEMAPHORE_VERSION)" --build-arg "PYTHON_VERSION=$(PYTHON_VERSION)" --build-arg "SPECTRE_VERSION=$(SPECTRE_VERSION)" podman build . --tag $(REPOSITORY):v$(SEMAPHORE_VERSION) --build-arg "OPENTOFU_VERSION=$(OPENTOFU_VERSION)" --build-arg "SEMAPHORE_VERSION=$(SEMAPHORE_VERSION)" --build-arg "PYTHON_VERSION=$(PYTHON_VERSION)" --build-arg "SPECTRE_VERSION=$(SPECTRE_VERSION)"
push: image ## Build and publish image push: image ## Build and publish image
podman login $(shell echo $(REPOSITORY) | cut -d '/' -f 1)
podman push $(REPOSITORY):v$(SEMAPHORE_VERSION) podman push $(REPOSITORY):v$(SEMAPHORE_VERSION)
dev: ## Setup local dev environment dev: ## Setup local dev environment