mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
Enabled piplines support for automated docker releases
This commit is contained in:
parent
bd87e0018b
commit
5b51b21a11
31
bitbucket-pipelines.yml
Normal file
31
bitbucket-pipelines.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
image: dchevell/docker-release-maker:latest
|
||||||
|
clone:
|
||||||
|
depth: full
|
||||||
|
|
||||||
|
pipelines:
|
||||||
|
custom:
|
||||||
|
create-release-base-6:
|
||||||
|
- step:
|
||||||
|
script:
|
||||||
|
- git fetch --all
|
||||||
|
- export BASE_BRANCH=base-6
|
||||||
|
- export BASE_VERSION=6
|
||||||
|
- export DOCKER_REPO=atlassian/confluence-server
|
||||||
|
- export DOCKERFILE_VERSION_STRING=CONFLUENCE_VERSION
|
||||||
|
- export GIT_USER=pipelinesagent
|
||||||
|
- export GIT_EMAIL=pipelines-agent@atlassian.com
|
||||||
|
- export MAC_PRODUCT_KEY=confluence
|
||||||
|
- python /usr/src/app/create_release.py
|
||||||
|
branches:
|
||||||
|
base-6:
|
||||||
|
- step:
|
||||||
|
script:
|
||||||
|
- git fetch --all
|
||||||
|
- export BASE_BRANCH=base-6
|
||||||
|
- export BASE_VERSION=6
|
||||||
|
- export DOCKER_REPO=atlassian/confluence-server
|
||||||
|
- export DOCKERFILE_VERSION_STRING=CONFLUENCE_VERSION
|
||||||
|
- export GIT_USER=pipelinesagent
|
||||||
|
- export GIT_EMAIL=pipelines-agent@atlassian.com
|
||||||
|
- export MAC_PRODUCT_KEY=confluence
|
||||||
|
- python /usr/src/app/update_release.py
|
13
hooks/post_push
Normal file
13
hooks/post_push
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Parse image name for repo name
|
||||||
|
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||||
|
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||||
|
|
||||||
|
# Tag and push image for each additional tag
|
||||||
|
for tag in `git tag -l --points-at HEAD`; do
|
||||||
|
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||||
|
docker push ${repoName}:${tag}
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user