Skip to content

Commit

Permalink
deploy: tag GHCR image before push
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
  • Loading branch information
moto-timo committed Jan 6, 2024
1 parent 52bb1ac commit 3eae188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if ([ "${GITHUB_EVENT_NAME}" = "push" ] || [ "${GITHUB_EVENT_NAME}" = "workflow_
${ENGINE_CMD} push ${REPO}:latest
fi

${ENGINE_CMD} tag ${REPO}:${BASE_DISTRO} ghcr.io/${REPO}:${BASE_DISTRO}

echo $GHCR_PASSWORD | ${ENGINE_CMD} login ghcr.io -u $GHCR_USERNAME --password-stdin
${ENGINE_CMD} push ghcr.io/${REPO}:${BASE_DISTRO}

Expand Down

0 comments on commit 3eae188

Please sign in to comment.