This commit is contained in:
parent
996c79e4b4
commit
255496af87
@ -15,7 +15,7 @@ This script assumes that you are already logged in into Gitlab Registry.
|
|||||||
|
|
||||||
Ensure to add global `before_script`:
|
Ensure to add global `before_script`:
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
before_script:
|
before_script:
|
||||||
- apk add bash
|
- apk add bash
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
@ -62,6 +62,7 @@ function get_amd64_image() {
|
|||||||
|
|
||||||
echo -n "Downloaded, "
|
echo -n "Downloaded, "
|
||||||
|
|
||||||
|
# shellcheck disable=SC1083
|
||||||
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
||||||
|
|
||||||
if ! docker tag "${image_hash}" "${REMOTE_IMAGE}-amd64" &> /dev/null; then
|
if ! docker tag "${image_hash}" "${REMOTE_IMAGE}-amd64" &> /dev/null; then
|
||||||
@ -89,6 +90,7 @@ function get_arm64_image() {
|
|||||||
|
|
||||||
echo -n "Downloaded, "
|
echo -n "Downloaded, "
|
||||||
|
|
||||||
|
# shellcheck disable=SC1083
|
||||||
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
||||||
|
|
||||||
if ! docker tag "${image_hash}" "${REMOTE_IMAGE}-arm64" &> /dev/null; then
|
if ! docker tag "${image_hash}" "${REMOTE_IMAGE}-arm64" &> /dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user