Skip to content

takuya/github-actions-build-and-push-docker-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

githu-actions-build-and-push-docker-sample

Github ActionsでDockerfileをビルドしてプッシュするサンプル

作り方

レポジトリを作り、githubをoriginに

mkdir my-repo
cd my-repo
touch README.md
git init 
git add README.md
git commit -m initial
git remote add origin git@github.com/xxxx/xxxx 

dockerfileを作る

touch docker-build/Dockerfile

actionを作る。

mkdir -p .github/workflows/
touch .github/workflows/actions.yml

push で起動する

git add .github
git push origin master

作成したら、公開範囲を変える。

Privateだと容量制限食らうので。できる限り公開にしておく。

Screenshot 2021-10-03 231643

動作チェックする。

docker pull ghcr.io/takuya/github-action-build-and-push-docker-sample

About

Github ActionsでDockerfileをビルドしてプッシュするサンプル

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors