Skip to content

Commit

Permalink
Merge pull request #4 from KillrVideo/git_tag_as_docker_tag
Browse files Browse the repository at this point in the history
Git Tag as Docker Tag
  • Loading branch information
HadesArchitect authored Feb 12, 2019
2 parents c8c737b + 4839507 commit 587fe93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: generic

# Sudo required for doing docker build
sudo: required
services:
- docker

# Build the docker image
script:
- ./build/docker-build.sh
- docker build -t ${TRAVIS_COMMIT} .

# If successful, see if we need to publish also
after_success:
- ./build/travis-publish.sh
- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-dse-config:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-dse-config:${TRAVIS_TAG}

# Environment variables needed when publishing
env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM datastax/dse-server:6.0.2
FROM datastax/dse-server:6.7.0

# Copy schema files into /opt/killrvideo-data
COPY [ "lib/killrvideo-data/graph/killrvideo_video_recommendations_schema.groovy", "lib/killrvideo-data/schema.cql", "lib/killrvideo-data/search/*", "keyspace.cql", "/opt/killrvideo-data/" ]
Expand Down
13 changes: 0 additions & 13 deletions build/travis-publish.sh

This file was deleted.

0 comments on commit 587fe93

Please sign in to comment.