Skip to content

Commit

Permalink
Add release scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinthakagodawita committed Dec 18, 2020
1 parent 4780b1a commit f78292e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/README.md
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`
20 changes: 20 additions & 0 deletions scripts/build-prod.sh
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
20 changes: 20 additions & 0 deletions scripts/build-test.sh
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

0 comments on commit f78292e

Please sign in to comment.