From b70f55695a8ec25d4d9a0bd0543ec1e3738380d5 Mon Sep 17 00:00:00 2001 From: Xavier RENE-CORAIL Date: Mon, 6 Apr 2020 15:46:33 -0700 Subject: [PATCH] Push to latest also --- courses/cpp/uboot/image/publish.sh | 6 ++++-- templates/action/image/publish.sh | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/courses/cpp/uboot/image/publish.sh b/courses/cpp/uboot/image/publish.sh index 47ea009..66e3533 100755 --- a/courses/cpp/uboot/image/publish.sh +++ b/courses/cpp/uboot/image/publish.sh @@ -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 \ No newline at end of file +docker push $IMAGE_TAG +docker push $IMAGE_LATEST_TAG diff --git a/templates/action/image/publish.sh b/templates/action/image/publish.sh index 3f7209e..71c4951 100755 --- a/templates/action/image/publish.sh +++ b/templates/action/image/publish.sh @@ -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-:${IMAGE_VERSION} +IMAGE_TAG_LATEST=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-:latest -docker build -t $IMAGE_TAG . +docker build -t $IMAGE_TAG -t $IMAGE_TAG_LATEST . -docker push $IMAGE_TAG \ No newline at end of file +docker push $IMAGE_TAG +docker push $IMAGE_TAG_LATEST \ No newline at end of file