-
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.
* [#12] fix: docker 로그인 변수명 환경에 따라 분리 * [#12] fix(dev-CI): docker 로그인 테스트 목적으로 명령어 추가 * [#12] fix: workflow env 지정 * [#12] fix(dev-CI): docker login test 제외
- Loading branch information
1 parent
de2003f
commit 75db86f
Showing
4 changed files
with
11 additions
and
7 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
jobs: | ||
CI: | ||
runs-on: ubuntu-22.04 | ||
environment: dev | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -34,16 +35,16 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
username: ${{ secrets.DEV_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DEV_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile-dev | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DEV_REPONAME }} | ||
tags: ${{ secrets.DEV_DOCKERHUB_USERNAME }}/${{ secrets.DEV_REPONAME }} | ||
|
||
CD: | ||
needs: [CI] | ||
|
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
jobs: | ||
CI: | ||
runs-on: ubuntu-22.04 | ||
environment: prod | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -34,16 +35,16 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
username: ${{ secrets.PROD_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.PROD_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile-prod | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROD_REPONAME }} | ||
tags: ${{ secrets.PROD_DOCKERHUB_USERNAME }}/${{ secrets.PROD_REPONAME }} | ||
|
||
CD: | ||
needs: [CI] | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
environment: prod | ||
|
||
steps: | ||
- name: Checkout | ||
|