mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
20240702_123156
This commit is contained in:
parent
8647cf97a9
commit
9d35149a06
1 changed files with 42 additions and 42 deletions
|
@ -1,29 +1,29 @@
|
||||||
image: atlassian/default-image:4
|
# Example
|
||||||
|
definitions:
|
||||||
|
services:
|
||||||
|
docker: # can only be used with a self-hosted runner
|
||||||
|
image: docker:dind
|
||||||
|
|
||||||
|
|
||||||
pipelines:
|
pipelines:
|
||||||
branches:
|
default:
|
||||||
master: # Trigger this for any pushes to the master branch.
|
|
||||||
- step:
|
- step:
|
||||||
name: DockerBuild
|
runs-on:
|
||||||
size: 2x # Increase memory by using a larger build container
|
- self.hosted
|
||||||
trigger: automatic
|
- linux
|
||||||
# caches:
|
- docker
|
||||||
# - maven # Cache any dependencies we download, speeds up build times.
|
# - bash
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
caches:
|
caches:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- ps -p $$ && whoami
|
|
||||||
- cat /etc/os-release
|
|
||||||
- echo "$SHELL"
|
- echo "$SHELL"
|
||||||
- source scr_scrub_bitbucket_env_vars.sh
|
|
||||||
- source scr_non_secret_env_vars.sh
|
|
||||||
- printenv | sort
|
- printenv | sort
|
||||||
- source scr_validate_mandatory_variables.sh
|
# - source scr_validate_mandatory_variables.sh
|
||||||
- echo "$HARBOR_ACCESS_TOKEN" | docker login "$HARBOR_LOGIN_ADDRESS" -u "$HARBOR_USERNAME" --password-stdin
|
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
|
||||||
- docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}" .
|
# - docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}" .
|
||||||
- docker push "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}"
|
# - docker push "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}"
|
||||||
# - docker build -
|
# - docker build -
|
||||||
# - source pack_install.sh
|
# - source pack_install.sh
|
||||||
# - which pack && pack version
|
# - which pack && pack version
|
||||||
|
|
Loading…
Reference in a new issue