build(docker): build and push with Compose

This commit is contained in:
Oliver Davies 2021-10-24 02:53:56 +01:00
parent a2aa22d21e
commit bf9f9d5fa1

11
run
View file

@ -21,16 +21,13 @@ function deploy {
}
function docker:build-images {
docker image build . \
--file tools/docker/images/Dockerfile \
--tag ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} \
--tag ${DOCKER_WEB_IMAGE_NAME}:latest \
--target=production
docker-compose build --file docker-compose-production.yaml
DOCKER_TAG=latest docker-compose build --file docker-compose-production.yaml
}
function docker:push-images {
docker image push ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG}
docker image push ${DOCKER_WEB_IMAGE_NAME}:latest
docker-compose push --file docker-compose-production.yaml
DOCKER_TAG=latest docker-compose push --file docker-compose-production.yaml
}
function help {