-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b7e80e
commit f03d439
Showing
5 changed files
with
34 additions
and
27 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 |
---|---|---|
|
@@ -32,33 +32,33 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: 환경변수 파일 생성 | ||
run: echo "${{ secrets.APPLICATION_ENV }}" > ./.env | ||
# - name: 환경변수 파일 생성 | ||
# run: echo "${{ secrets.APPLICATION_ENV }}" > ./.env | ||
# | ||
# - name: 환경변수 파일을 서버로 전송한다 | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.HOST }} | ||
# username: ${{ secrets.USERNAME }} | ||
# key: ${{ secrets.PRIVATE_KEY }} | ||
# port: ${{ secrets.PORT }} | ||
# source: "./.env" | ||
# target: "./" | ||
|
||
- name: 환경변수 파일을 서버로 전송한다 | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.PRIVATE_KEY }} | ||
port: ${{ secrets.PORT }} | ||
source: "./.env" | ||
target: "./" | ||
# - name: ubuntu Docker image build and push | ||
# run: | | ||
# docker-compose -f ./docker/docker-compose.yml build | ||
# docker-compose -f ./docker/docker-compose.yml push | ||
- name: ubuntu Docker image build | ||
run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest -f Dockerfile-server . | ||
|
||
- name: ubuntu Docker image build and push | ||
run: | | ||
docker-compose -f ./docker/docker-compose.yml build | ||
docker-compose -f ./docker/docker-compose.yml push | ||
# - name: ubuntu Docker image build | ||
# run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest -f Dockerfile-server . | ||
# | ||
# - name: Redis Docker image build | ||
# run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis -f Dockerfile-redis . | ||
- name: Redis Docker image build | ||
run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis -f Dockerfile-redis . | ||
|
||
# - name: ubuntu docker Hub 푸쉬 | ||
# run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest | ||
# - name: Redis docker Hub 푸쉬 | ||
# run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis | ||
- name: ubuntu docker Hub 푸쉬 | ||
run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest | ||
- name: Redis docker Hub 푸쉬 | ||
run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis | ||
|
||
- name: Deploy with push | ||
uses: appleboy/[email protected] | ||
|
File renamed without changes.
File renamed without changes.
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