Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 .
Comment thread
adityasharad marked this conversation as resolved.

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