mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
20240702_123156
This commit is contained in:
parent
8647cf97a9
commit
9d35149a06
1 changed files with 42 additions and 42 deletions
|
@ -1,44 +1,44 @@
|
||||||
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:
|
runs-on:
|
||||||
name: DockerBuild
|
- self.hosted
|
||||||
size: 2x # Increase memory by using a larger build container
|
- linux
|
||||||
trigger: automatic
|
- docker
|
||||||
# caches:
|
# - bash
|
||||||
# - maven # Cache any dependencies we download, speeds up build times.
|
services:
|
||||||
services:
|
- docker
|
||||||
- docker
|
caches:
|
||||||
caches:
|
- docker
|
||||||
- docker
|
script:
|
||||||
script:
|
- echo "$SHELL"
|
||||||
- ps -p $$ && whoami
|
- printenv | sort
|
||||||
- cat /etc/os-release
|
# - source scr_validate_mandatory_variables.sh
|
||||||
- echo "$SHELL"
|
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
|
||||||
- source scr_scrub_bitbucket_env_vars.sh
|
# - docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}" .
|
||||||
- source scr_non_secret_env_vars.sh
|
# - docker push "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}"
|
||||||
- printenv | sort
|
# - docker build -
|
||||||
- source scr_validate_mandatory_variables.sh
|
# - source pack_install.sh
|
||||||
- echo "$HARBOR_ACCESS_TOKEN" | docker login "$HARBOR_LOGIN_ADDRESS" -u "$HARBOR_USERNAME" --password-stdin
|
# - which pack && pack version
|
||||||
- docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}" .
|
# - bash create-settings.sh # Create our settings.xml file. Will fail if environment variables aren't set properly.
|
||||||
- docker push "${DOCKER_IMAGE_NAME}:${DOCKER_TAG_PIPELINE_UUID}"
|
# - mvn -B -s settings.xml verify # Ensure all artifacts build successfully before we attempt deploy in order to prevent partial deploys.
|
||||||
# - docker build -
|
# - mvn -B -s settings.xml deploy # Now that all builds have completed, we can deploy all the artifacts.
|
||||||
# - source pack_install.sh
|
# - step:
|
||||||
# - which pack && pack version
|
# name: Create Release Version # This will create a release version and commit it to master. It will then be picked up and deployed in the first step.
|
||||||
# - bash create-settings.sh # Create our settings.xml file. Will fail if environment variables aren't set properly.
|
# trigger: manual
|
||||||
# - mvn -B -s settings.xml verify # Ensure all artifacts build successfully before we attempt deploy in order to prevent partial deploys.
|
# caches:
|
||||||
# - mvn -B -s settings.xml deploy # Now that all builds have completed, we can deploy all the artifacts.
|
# - maven
|
||||||
# - step:
|
# script:
|
||||||
# name: Create Release Version # This will create a release version and commit it to master. It will then be picked up and deployed in the first step.
|
# - bash create-settings.sh # Create our settings.xml file. Will fail if environment variables aren't set properly.
|
||||||
# trigger: manual
|
# - bash validate-release-configuration.sh # Do the best we can to ensure we have the SSH keys and env variables in place before we try to prepare a release.
|
||||||
# caches:
|
# - git config --global user.email "$GIT_USER_EMAIL"
|
||||||
# - maven
|
# - git config --global user.name "$GIT_USER_NAME"
|
||||||
# script:
|
# - mvn -B -s settings.xml -DdryRun=true release:prepare # Ensure that most things will run properly before we do the real work.
|
||||||
# - bash create-settings.sh # Create our settings.xml file. Will fail if environment variables aren't set properly.
|
# - mvn -B -s settings.xml release:clean release:prepare # This bumps the versions in the poms, creates new commits, which will then get built by the master branch trigger.
|
||||||
# - bash validate-release-configuration.sh # Do the best we can to ensure we have the SSH keys and env variables in place before we try to prepare a release.
|
|
||||||
# - git config --global user.email "$GIT_USER_EMAIL"
|
|
||||||
# - git config --global user.name "$GIT_USER_NAME"
|
|
||||||
# - mvn -B -s settings.xml -DdryRun=true release:prepare # Ensure that most things will run properly before we do the real work.
|
|
||||||
# - mvn -B -s settings.xml release:clean release:prepare # This bumps the versions in the poms, creates new commits, which will then get built by the master branch trigger.
|
|
||||||
|
|
Loading…
Reference in a new issue