Skip to content

Commit

Permalink
for idaholab#389, used tagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed May 9, 2024
1 parent d2de21b commit 1372701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/github_image_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function _gitreponame() {

# get the current git working copy's Malcolm version (grepped from docker-compose.yml, e.g., 5.0.3)
function _malcolmversion() {
$GREP -P "^\s+image:.*/malcolm" "$(_gittoplevel)"/docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1
$GREP -P "^\s+image:.*/malcolm" "$(_gittoplevel)"/docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | sed 's/-[^-]*$//' | uniq -c | sort -nr | awk '{print $2}' | head -n 1
}

################################################################################
Expand All @@ -107,7 +107,7 @@ function _PullAndTagGithubWorkflowBuild() {
IMAGE=$1

docker pull $QUIET_PULL_FLAG ghcr.io/"$OWNER"/"$IMAGE":"${BRANCH}${IMAGE_ARCH_SUFFIX}" && \
docker tag ghcr.io/"$OWNER"/"$IMAGE":"$BRANCH" ghcr.io/idaholab/"$IMAGE":"${VERSION}${IMAGE_ARCH_SUFFIX}"
docker tag ghcr.io/"$OWNER"/"$IMAGE":"${BRANCH}${IMAGE_ARCH_SUFFIX}" ghcr.io/idaholab/"$IMAGE":"${VERSION}${IMAGE_ARCH_SUFFIX}"
}

function PullAndTagGithubWorkflowImages() {
Expand Down

0 comments on commit 1372701

Please sign in to comment.