Skip to content

Commit

Permalink
release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeonghanlee committed Jun 26, 2021
1 parent 7a61619 commit 1361b39
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
DOCKER_FILE: centos7/Dockerfile
DOCKER_ACCOUNT: alscontrols
DOCKER_REPO: centos7-epics
DOCKER_TAG: latest
DOCKER_TAG: v1.0.0

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debian10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
DOCKER_FILE: debian10/Dockerfile
DOCKER_ACCOUNT: alscontrols
DOCKER_REPO: debian10-epics
DOCKER_TAG: latest
DOCKER_TAG: v1.0.0

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rocky8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
DOCKER_FILE: rocky8/Dockerfile
DOCKER_ACCOUNT: alscontrols
DOCKER_REPO: rocky8-epics
DOCKER_TAG: latest
DOCKER_TAG: v1.0.0

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sl7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
DOCKER_FILE: sl7/Dockerfile
DOCKER_ACCOUNT: alscontrols
DOCKER_REPO: sl7-epics
DOCKER_TAG: latest
DOCKER_TAG: v1.0.0

steps:
-
Expand Down
50 changes: 50 additions & 0 deletions release.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash
# author : Jeong Han Lee
# email : [email protected]
# version : 0.0.1

declare -g SC_SCRIPT;
declare -g SC_TOP;

SC_SCRIPT="$(realpath "$0")";
SC_TOP="${SC_SCRIPT%/*}"

function pushd { builtin pushd "$@" > /dev/null || exit; }
function popd { builtin popd > /dev/null || exit; }

Debian10="debian10.yml"
CentOS7="centos7.yml"
Rocky8="rocky8.yml"
Sl7="sl7.yml"

ACTION_PATH="${SC_TOP}/.github/workflows";
DEB_FILE="${ACTION_PATH}/${Debian10}";
CEN_FILE="${ACTION_PATH}/${CentOS7}";
ROC_FILE="${ACTION_PATH}/${Rocky8}";
SL7_FILE="${ACTION_PATH}/${Sl7}";


function replace_tag
{
local tag="$1"; shift;
local file="$1"; shift;
sed -i -e "s| DOCKER_TAG:.*$| DOCKER_TAG: ${tag}|g" "${file}"
}


input_tag="$1";

if [ -z "$input_tag" ]; then
input_tag="latest";
echo "Default tag [ $input_tag ] will be used."
fi

pushd "$SC_TOP" || exit
replace_tag "${input_tag}" "${DEB_FILE}"
replace_tag "${input_tag}" "${CEN_FILE}"
replace_tag "${input_tag}" "${ROC_FILE}"
replace_tag "${input_tag}" "${SL7_FILE}"
popd || exit

exit

0 comments on commit 1361b39

Please sign in to comment.