-
Notifications
You must be signed in to change notification settings - Fork 50
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
4780b1a
commit f78292e
Showing
3 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# scripts | ||
|
||
These are very simple interim release management scripts till proper CD is in place: | ||
* `build-test.sh`: Builds and deploys a test release to `chinthakagodawita/autoupdate-action-unstable:v1` | ||
* `build-prod.sh`: Builds and deploys a production release to `chinthakagodawita/autoupdate-action:v1` |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -o nounset | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
REPO="chinthakagodawita/autoupdate-action" | ||
|
||
pushd "${SCRIPT_DIR}/.." > /dev/null | ||
|
||
set -x | ||
|
||
docker build -t "${REPO}:v1" . | ||
docker tag "${REPO}:v1" "${REPO}:latest" | ||
docker push "${REPO}:v1" | ||
docker push "${REPO}:latest" | ||
|
||
set +x | ||
|
||
popd > /dev/null |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -o nounset | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
REPO="chinthakagodawita/autoupdate-action-unstable" | ||
|
||
pushd "${SCRIPT_DIR}/.." > /dev/null | ||
|
||
set -x | ||
|
||
docker build -t "${REPO}:v1" . | ||
docker tag "${REPO}:v1" "${REPO}:latest" | ||
docker push "${REPO}:v1" | ||
docker push "${REPO}:latest" | ||
|
||
set +x | ||
|
||
popd > /dev/null |