From debd0e047b3beba824d6db1cdd710ae338dc5433 Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 29 Aug 2021 18:29:51 +0200 Subject: [PATCH] initial commit --- scripts/docker2github | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/docker2github diff --git a/scripts/docker2github b/scripts/docker2github new file mode 100644 index 0000000..5b15ff5 --- /dev/null +++ b/scripts/docker2github @@ -0,0 +1,9 @@ +#!/bin/bash + +# use: sh docker2github USERNAME CONTAINER_NAME +## nano ~/.bashrc +## and add this to the end of the file: export PATH=$PATH:~/bin + +docker build -t $2 . +docker tag $2 ghcr.io/$1/$2:latest +docker push ghcr.io/$1/$2:latest \ No newline at end of file