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

Commit 6377b58

Browse files
committed
Add publish script
1 parent 2bf987c commit 6377b58

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

courses/cpp/uboot/image/publish.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#! /bin/bash
2+
3+
set -e
4+
set -x
5+
6+
docker login docker.pkg.github.com -u github-actions -p ${GITHUB_TOKEN}
7+
8+
IMAGE_VERSION=latest
9+
IMAGE_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-uboot:${IMAGE_VERSION}
10+
11+
docker build -t $IMAGE_TAG .
12+
13+
docker push $IMAGE_TAG

templates/action/image/publish.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#! /bin/bash
2+
3+
set -e
4+
set -x
5+
6+
docker login docker.pkg.github.com -u github-actions -p ${GITHUB_TOKEN}
7+
8+
IMAGE_VERSION=latest
9+
IMAGE_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/courses-cpp-<course-name>:${IMAGE_VERSION}
10+
11+
docker build -t $IMAGE_TAG .
12+
13+
docker push $IMAGE_TAG

0 commit comments

Comments
 (0)