diff --git a/workspace.yml b/workspace.yml index 0647163f..3b82909e 100644 --- a/workspace.yml +++ b/workspace.yml @@ -20,6 +20,15 @@ command('docker image build '): run docker image build -f tools/docker/images/Dockerfile --target=production -t @('docker.repository'):${GIT_COMMIT_SHA} . run docker image build -f tools/docker/images/Dockerfile --target=production -t @('docker.repository'):latest . +command('docker image pull '): + env: + COMPOSE_PROJECT_NAME: = @('namespace') + GIT_COMMIT_SHA: = input.argument('git_commit') + exec: | + #!bash(workspace:/)|@ + run docker image pull @('docker.repository'):${GIT_COMMIT_SHA} + run docker image pull @('docker.repository'):latest + command('docker image push '): env: COMPOSE_PROJECT_NAME: = @('namespace')