Skip to content

Commit e894a5b

Browse files
authored
Merge pull request #78 from GTable/feature/#58-docker-setting
Feat: 도커 배포 테스트
2 parents 00be67e + 329991d commit e894a5b

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy-admin-docker.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ jobs:
5656

5757
- name: Build and Push Docker Image
5858
run: |
59-
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/admin/nowait-app-admin-api ./nowait-app-admin-api
60-
docker push ${{ secrets.DOCKERHUB_USERNAME }}/admin/nowait-app-admin-api
61-
59+
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/nowait_dev:admin-${{ github.sha }} ./nowait-app-admin-api
60+
docker push ${{ secrets.DOCKERHUB_USERNAME }}/nowait_dev:admin-${{ github.sha }}
6261
63-
deploy:
62+
63+
64+
deploy:
6465
name: Deploy to EC2
6566
runs-on: ubuntu-latest
6667
needs: build-with-gradle

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
# build:
1919
# context: nowait-app-admin-api
2020
# dockerfile: Dockerfile
21-
image: jihuneddie/admin/nowait-app-admin-api:latest
21+
image: jihuneddie/nowait_dev:admin-<tag>
2222
container_name:
2323
nowait-app-admin-api
2424
ports:

nowait-app-admin-api/src/main/java/com/nowait/ApiAdminApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ public static void main(String[] args) {
1010
org.springframework.boot.SpringApplication.run(ApiAdminApplication.class, args);
1111
}
1212
}
13+

0 commit comments

Comments
 (0)