-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from ever-co/develop
feat: release
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
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
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,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
DOCKER_REPO=traduora/traduora | ||
|
||
docker build -t "$DOCKER_REPO:latest" . | ||
|
||
if [[ $RELEASE != "" ]]; then | ||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin | ||
|
||
echo "Releasing docker image: $DOCKER_REPO with latest tag" | ||
docker push "$DOCKER_REPO:latest" | ||
|
||
echo "Releasing docker image: $DOCKER_REPO with tag: $RELEASE" | ||
docker tag "$DOCKER_REPO:latest" $DOCKER_REPO:$RELEASE | ||
docker push "$DOCKER_REPO:$RELEASE" | ||
fi |
bafb5d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
traduora-docs-co – ./
traduora-docs-co-git-master-ever-co.vercel.app
traduora-docs-co-ever-co.vercel.app
docs.traduora.co