https://github.com/takuya/github-actions-build-and-push-docker-sample
Github ActionsでDockerfileをビルドしてプッシュするサンプル
https://github.com/takuya/github-actions-build-and-push-docker-sample
Last synced: 5 months ago
JSON representation
Github ActionsでDockerfileをビルドしてプッシュするサンプル
- Host: GitHub
- URL: https://github.com/takuya/github-actions-build-and-push-docker-sample
- Owner: takuya
- License: gpl-3.0
- Created: 2021-10-03T13:46:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-03T14:21:57.000Z (over 4 years ago)
- Last Synced: 2025-02-09T01:14:04.288Z (over 1 year ago)
- Language: Dockerfile
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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だと容量制限食らうので。できる限り公開にしておく。

## 動作チェックする。
```
docker pull ghcr.io/takuya/github-action-build-and-push-docker-sample
```