Skip to content

Commit 1cb500e

Browse files
committed
split versions into separate push ops
1 parent 19eec8f commit 1cb500e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ jobs:
1212
command: |
1313
docker login docker.pkg.github.com -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"
1414
version=$(date "+%Y-%m-%d")-$(git --no-pager log -1 --pretty=%h)
15-
docker build -t docker.pkg.github.com/nais/testapp/testapp:latest -t docker.pkg.github.com/nais/testapp/testapp:${version} .
16-
docker push docker.pkg.github.com/testapp
15+
image_prefix=docker.pkg.github.com/nais/testapp/testapp
16+
docker build -t ${image_prefix}:latest -t ${image_prefix}:${version} .
17+
docker push ${image_prefix}:latest
18+
docker push ${image_prefix}:${version}

0 commit comments

Comments
 (0)