Skip to content

Commit

Permalink
[feature/#313] github actions Docker hub 관련 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
whitem4rk committed Jun 18, 2024
1 parent cff1e97 commit ce11ab6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
build:
deploy:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -37,9 +37,26 @@ jobs:
key: ${{ secrets.IBAS_DEV_SSH_KEY }}
passphrase: ${{ secrets.IBAS_DEV_PASSWORD }}
# port: ${{ secrets.PORT }} # default : 22
source: "resource-server/build/libs/resource-server-0.0.1-SNAPSHOT.jar"
source: "docker-compose.yml"
target: ${{ secrets.IBAS_DEV_DEPLOY_PATH }}
strip_components: 3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ secrets.DOCKERHUB_STORAGE }}:dev

- name: execute deploy shell script via ssh
uses: appleboy/ssh-action@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/depoly-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- release-*

jobs:
build:
deploy:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit ce11ab6

Please sign in to comment.