Commit 5fcdba80 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

tag a docker image by date

parent 29f41939
Pipeline #170142 failed
variables:
IMAGE: rwthos/hermitcore-rs
IMAGE: rwthos/hermit-cargo
GIT_SUBMODULE_STRATEGY: normal
VERSION=$(date %Y%m%d%H%M%S)
stages:
- prepare
......@@ -13,7 +14,9 @@ docker:
script:
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${IMAGE}:latest
- docker tag ${IMAGE} ${IMAGE}:${VERSION}
- docker push ${IMAGE}:latest
- docker push ${IMAGE}:${VERSION}
tags:
- shell
- linux
Supports Markdown
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