-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 과도한 도커 이미지 생성으로 인해 이미지 빌드및 push 과정을 CD.yml workflow를 만들어 분리하였습니다
- Loading branch information
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Github Repository 파일 불러오기 | ||
uses: actions/checkout@v4 | ||
|
||
- name: 도커 허브 로그인 | ||
run: echo "${{ secrets.DOCKER_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
|
||
- name: 도커 이미지 빌드및 Push | ||
run: | | ||
docker build -t 7zrv/somemore:${GITHUB_SHA::7} -t 7zrv/somemore:latest . | ||
docker push 7zrv/somemore:${GITHUB_SHA::7} | ||
docker push 7zrv/somemore:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters