ci: copy theme assets from Docker container

This commit is contained in:
Oliver Davies 2021-12-14 23:28:32 +00:00
parent c898f4da4f
commit 8953de7dbd
5 changed files with 47 additions and 21 deletions

13
run
View file

@ -7,6 +7,19 @@ if [[ ! -t 1 ]]; then
TTY="-T"
fi
function task:build-and-push-images {
export DOCKER_BUILDKIT=1
docker-compose build assets
docker-compose push assets
}
function task:copy-theme-assets {
docker container run --entrypoint sh --name oliverdavies-uk-assets oliverdavies-uk-assets
docker cp oliverdavies-uk-assets:/node/build web/themes/custom/opdavies
docker container rm oliverdavies-uk-assets
}
function task:bash {
task:exec bash "${@}"
}