Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from github/latest
Browse files Browse the repository at this point in the history
Push to latest also
  • Loading branch information
xcorail authored Apr 6, 2020
2 parents 01c85c8 + aa6bc9c commit 49fadff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions courses/cpp/uboot/image/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 5 additions & 3 deletions templates/action/image/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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_LATEST_TAG=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_LATEST_TAG .

docker push $IMAGE_TAG
docker push $IMAGE_TAG
docker push $IMAGE_LATEST_TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.pkg.github.com/github/codeql-learninglab-actions/<course-package>
FROM docker.pkg.github.com/github/codeql-learninglab-actions/<course-package>:0.0.1

0 comments on commit 49fadff

Please sign in to comment.