Skip to content

Commit

Permalink
Better ensure we're always in the proper CWD
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilhelm-godaddy authored Oct 23, 2019
1 parent 15eccb0 commit 5455dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build_and_publish_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
IMAGE_NAMESPACE=godaddy
IMAGE_NAME=tartufo

# Move into the scripts folder
cd "$( dirname "${BASH_SOURCE[0]}" )"
IMAGE_VERSION=$(cat ../VERSION | tr -d '[:space:]')
IMAGE_FULL_NAME=${IMAGE_NAMESPACE}/${IMAGE_NAME}

# Go back to the top level of the project
cd ..
# Log in to Docker Hub
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
# Build and tag as the "latest" version of the image
Expand Down

0 comments on commit 5455dd5

Please sign in to comment.