-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of bitbucket.org:aldor007/go-img
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This is a sample build configuration for Docker. | ||
# Check our guides at https://confluence.atlassian.com/x/O1toN for more examples. | ||
# Only use spaces to indent your .yml configuration. | ||
# ----- | ||
# You can specify a custom docker image from Docker Hub as your build environment. | ||
# image: atlassian/default-image:latest | ||
|
||
# enable Docker for your repository | ||
options: | ||
docker: true | ||
|
||
pipelines: | ||
default: | ||
- step: | ||
script: # Modify the commands below to build your repository. | ||
# Set $DOCKER_HUB_USERNAME and $DOCKER_HUB_PASSWORD as environment variables in repository settings | ||
- export IMAGE_NAME=aldor007/mort:$BITBUCKET_COMMIT | ||
|
||
# build the Docker image (this will use the Dockerfile in the root of the repo) | ||
- docker build -t $IMAGE_NAME . | ||
# authenticate with the Docker Hub registry | ||
- docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD | ||
# push the new Docker image to the Docker registry | ||
- docker push $IMAGE_NAME |