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 { function docker:build-images {
docker image build . \ docker-compose build --file docker-compose-production.yaml
--file tools/docker/images/Dockerfile \ DOCKER_TAG=latest docker-compose build --file docker-compose-production.yaml
--tag ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} \
--tag ${DOCKER_WEB_IMAGE_NAME}:latest \
--target=production
} }
function docker:push-images { function docker:push-images {
docker image push ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} docker-compose push --file docker-compose-production.yaml
docker image push ${DOCKER_WEB_IMAGE_NAME}:latest DOCKER_TAG=latest docker-compose push --file docker-compose-production.yaml
} }
function help { function help {