Workflow file for this run
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
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "feature/#4-set-deploy-pipeline" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
## gradle build | |
- name: Build with Gradle | |
run: ./gradlew bootJar | |
## 웹 이미지 빌드 및 도커허브에 push | |
- name: web docker build and push | |
run: | | |
docker login -u egg528 -p tkfkd0104! | |
docker build --no-cache -t egg528/test . | |
docker push egg528/test | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@master | |
with: | |
host: 221.140.69.194 | |
username: woosuk | |
password: onebailey! | |
port: 22 | |
script: | | |
docker-compose -f ~/docker-compose/grafana/docker-compose.yml down | |
docker-compose -f ~/docker-compose/grafana/docker-compose.yml -d |