PythonPlayground/scripts/docker2github
2021-08-29 18:52:57 +02:00

10 lines
249 B
Bash

#!/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
#### By [Sthope]