workspace('oliverdavies-uk'): description: Sculpin website for oliverdavies.uk. attribute('docker'): repository: ghcr.io/opdavies/oliverdavies-uk-web command('disable'): env: COMPOSE_PROJECT_NAME: = @('namespace') exec: | #!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:/)|@ 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') GIT_COMMIT_SHA: = input.argument('git_commit') exec: | #!bash(workspace:/)|@ ws docker image build $GIT_COMMIT_SHA run docker push @('docker.repository'):${GIT_COMMIT_SHA} run docker push @('docker.repository'):latest command('enable'): env: COMPOSE_PROJECT_NAME: = @('namespace') exec: | #!bash(workspace:/) passthru docker-compose up -d --build command('ps'): env: COMPOSE_PROJECT_NAME: = @('namespace') exec: | #!bash(workspace:/) passthru docker-compose ps