use custom network for docker run commands
This commit is contained in:
@ -5,17 +5,17 @@ build:
|
||||
# Have to authenticate to dockerhub and create repo first:
|
||||
# https://docs.docker.com/engine/reference/commandline/login/
|
||||
.PHONY: push-dockerhub
|
||||
push-dockerhub: build
|
||||
push-dockerhub:
|
||||
docker tag my-scratch-image sidpalas/my-scratch-image # defaults to latest
|
||||
docker push sidpalas/my-scratch-image
|
||||
|
||||
docker tag my-scratch-image sidpalas/my-scratch-image:abc-123 # defaults to latest
|
||||
docker tag my-scratch-image sidpalas/my-scratch-image:abc-123
|
||||
docker push sidpalas/my-scratch-image:abc-123
|
||||
|
||||
# Have to authenticate to ghcr.io first
|
||||
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry
|
||||
.PHONY: push-github-packages
|
||||
push-github-packages: build
|
||||
push-github-packages:
|
||||
docker tag my-scratch-image ghcr.io/sidpalas/my-scratch-image # defaults to latest
|
||||
docker push ghcr.io/sidpalas/my-scratch-image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user