-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a1d85b
commit a74784a
Showing
3 changed files
with
82 additions
and
24 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 |
---|---|---|
|
@@ -90,3 +90,23 @@ jobs: | |
run: gh release create build-${GITHUB_SHA} -t "Build ${GITHUB_SHA}" -n "This is the build of the commit ${GITHUB_SHA}" ./dist/* | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
################################################### | ||
# | ||
# Docker | ||
# | ||
################################################### | ||
|
||
- name: (DOCKER) Log in to the Container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: (DOCKER) Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ github.repository }}:${{ github.sha }} |
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 |
---|---|---|
@@ -1,18 +1,49 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
echo "The container is kept to be busy so that it can run detached in the background." | ||
echo "" | ||
echo "Vintner can be used in the following way:" | ||
echo " docker exec -it vintner vintner --version" | ||
echo "" | ||
echo "If you make use of Terraform, then you need to log into your account the following way:" | ||
echo " docker exec -it vintner terraform login" | ||
echo "" | ||
echo "If you are running on linux, then you can set an alias to natively use \"vintner\", e.g., \"vintner --version\"" | ||
echo " alias vintner=\"docker exec -it vintner vintner\"" | ||
echo "" | ||
echo "For more information, please consider our documentation:" | ||
echo " https://vintner.opentosca.org" | ||
|
||
tail -f /dev/null | ||
MODE=${1:-cli} | ||
|
||
################################################### | ||
# | ||
# CLI | ||
# | ||
################################################### | ||
|
||
if [ "$MODE" = "cli" ]; then | ||
echo "The container is kept busy so that it can run detached in the background. | ||
Vintner can be used in the following way: | ||
docker exec -it vintner vintner --version | ||
If you make use of Terraform, then you need to log into your account the following way: | ||
docker exec -it vintner terraform login | ||
If you are running on linux, then you can set an alias to natively use \"vintner\", e.g., \"vintner --version\" | ||
alias vintner=\"docker exec -it vintner vintner\" | ||
For more information, please consider our documentation: | ||
https://vintner.opentosca.org" | ||
|
||
tail -f /dev/null | ||
fi | ||
|
||
|
||
################################################### | ||
# | ||
# Server | ||
# | ||
################################################### | ||
|
||
if [ "$MODE" = "server" ]; then | ||
/bin/vintner server start | ||
fi | ||
|
||
|
||
################################################### | ||
# | ||
# Abort | ||
# | ||
################################################### | ||
|
||
echo mode \""$MODE"\" is unknown | ||
exit 1 |