Push to latest also
This commit is contained in:
Родитель
01c85c8b27
Коммит
b70f55695a
|
@ -7,7 +7,9 @@ docker login docker.pkg.github.com -u github-actions -p ${GITHUB_TOKEN}
|
|||
|
||||
IMAGE_VERSION=v1.0.0
|
||||
IMAGE_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-uboot:${IMAGE_VERSION}
|
||||
IMAGE_LATEST_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-uboot:latest
|
||||
|
||||
docker build -t $IMAGE_TAG .
|
||||
docker build -t $IMAGE_TAG -t $IMAGE_LATEST_TAG .
|
||||
|
||||
docker push $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
docker push $IMAGE_LATEST_TAG
|
||||
|
|
|
@ -5,9 +5,11 @@ set -x
|
|||
|
||||
docker login docker.pkg.github.com -u github-actions -p ${GITHUB_TOKEN}
|
||||
|
||||
IMAGE_VERSION=latest
|
||||
IMAGE_VERSION=0.0.1
|
||||
IMAGE_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-<course-name>:${IMAGE_VERSION}
|
||||
IMAGE_TAG_LATEST=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-<course-name>:latest
|
||||
|
||||
docker build -t $IMAGE_TAG .
|
||||
docker build -t $IMAGE_TAG -t $IMAGE_TAG_LATEST .
|
||||
|
||||
docker push $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
docker push $IMAGE_TAG_LATEST
|
Загрузка…
Ссылка в новой задаче