testing if itll build on a branch
This commit is contained in:
parent
c86b7c0625
commit
7a295e1cfe
@ -17,21 +17,14 @@ pipelines:
|
||||
- echo "Making sure the python actually runs"
|
||||
- pip install docker discord.py pybooru requests
|
||||
- python dragon-bot.py test
|
||||
- export IMAGE_NAME=ldooks/dragon-bot:latest
|
||||
# build the Docker image (this will use the Dockerfile in the root of the repo)
|
||||
- docker build -t $IMAGE_NAME .
|
||||
branches:
|
||||
master:
|
||||
- step:
|
||||
script:
|
||||
- export IMAGE_NAME=ldooks/dragon-bot:latest
|
||||
# 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
|
||||
feature/*:
|
||||
- step:
|
||||
script:
|
||||
# Only build iamges, dont push when we're on a feature branch
|
||||
- export IMAGE_NAME=ldooks/dragon-bot:latest
|
||||
# build the Docker image (this will use the Dockerfile in the root of the repo)
|
||||
- docker build -t $IMAGE_NAME .
|
||||
- docker push $IMAGE_NAME
|
Loading…
x
Reference in New Issue
Block a user