diff --git a/workspace.yml b/workspace.yml index a25cfebfa..97b0d99f9 100644 --- a/workspace.yml +++ b/workspace.yml @@ -8,6 +8,15 @@ command('disable'): #!bash(workspace:/) run docker-compose down +command('docker image build '): + env: + COMPOSE_PROJECT_NAME: = @('namespace') + GIT_COMMIT_SHA: = input.argument('git_commit') + exec: | + #!bash(workspace:/) + docker image build -f tools/docker/images/Dockerfile -t ${COMPOSE_PROJECT_NAME}-web:latest --target=nginx . + docker image build -f tools/docker/images/Dockerfile -t ${COMPOSE_PROJECT_NAME}-web:${GIT_COMMIT_SHA} --target=nginx . + command('enable'): env: COMPOSE_PROJECT_NAME: = @('namespace')