Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Aug 20, 2024
2 parents c15d372 + 4d73fc6 commit 79ad0d5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,26 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew
# gradlew 파일에 실행 권한 부여

- name: Create application.yml from secret
run: |
mkdir -p src/main/resources
echo "${{ secrets.APPLICATION_YML }}" > src/main/resources/application.yml
# GitHub Secrets에서 가져온 내용을 application.yml 파일로 생성
- name: Build with Gradle
run: ./gradlew clean build -x test

- name: Docker login
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: List files
run: ls -la

- name: Docker build
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker build -t COM-US-SERVER .
docker tag COM-US-SERVER hysong4u/COM-US-SERVER:latest
docker push hysong4u/COM-US-SERVER:latest
docker build -t com-us-server .
docker tag com-us-server hysong4u/com-us-server:latest
docker push hysong4u/com-us-server:latest
- name: Get timestamp
uses: gerred/actions/current-time@master
Expand Down

0 comments on commit 79ad0d5

Please sign in to comment.