Verified Commit 1038040a authored by hashworks's avatar hashworks
Browse files

Replace $DESTS with $LATEST

parent ed4f0cb4
......@@ -128,16 +128,17 @@ image:publish:secure:
before_script:
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKERHUB_USERNAME\",\"password\":\"$DOCKERHUB_ACCESS_TOKEN\"}}}" > /kaniko/.docker/config.json
script:
- DESTS="--destination archlinux/archlinux:$GROUP
--destination archlinux/archlinux:$GROUP-$BUILD_VERSION"
- LATEST=""
- if [[ "$GROUP" == "base" ]]; then
DESTS="$DESTS --destination archlinux/archlinux:latest"
LATEST="--destination archlinux/archlinux:latest"
fi
- /kaniko/executor
--whitelist-var-run="false"
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile.$GROUP
$DESTS
--destination archlinux/archlinux:$GROUP
--destination archlinux/archlinux:$GROUP-$BUILD_VERSION
$LATEST
.test:
stage: test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment