Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and push docker image when merged #7

Merged
merged 2 commits into from
Sep 8, 2021

Conversation

seungkyua
Copy link
Contributor

@seungkyua seungkyua commented Sep 1, 2021

pr 을 올리면 pr 의 source branch 명을 태그로 붙혀서 docker.io/seungkyua/tks-cluster-lcm:[branch명] 으로 이미지를 저장함
merge 되면 docker.io/seungkyua/tks-cluster-lcm:latest 로 이미지를 저장함

push:
branches:
- main
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 일 때도 이미지 push 되는거 아닌가요? build만 해야하지 않을까 싶습니다.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

만약 pull_request 가 PR merged 가 아닌 PR 만이라면 build 만 해야 할 것 같네요.

file: Dockerfile
push: true
tags: |
docker.pkg.github.com/${{ github.repository }}/tks-cluster-lcm:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

버전명으로 명시하여 build 하고, tag 해야 하지 않을까요? latest 는 심볼릭 링크처럼 사용하는게 아닐까하여 코멘트합니다.

@seungkyua seungkyua force-pushed the docker_build_and_push branch 4 times, most recently from f3c3d8e to 1239091 Compare September 8, 2021 03:25
@seungkyua seungkyua force-pushed the docker_build_and_push branch from 1239091 to 2f355bf Compare September 8, 2021 03:27
@seungkyua seungkyua merged commit 769e64f into openinfradev:main Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants