Skip to content

Revert "chore: trigger dev deployment" #3

Revert "chore: trigger dev deployment"

Revert "chore: trigger dev deployment" #3

Workflow file for this run

name: TOMO Dev CI-CD
on:
push:
branches: [ "dev" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Grant execute permission for gradlew
run: chmod +x backend/gradlew
- name: Build with Gradle
working-directory: backend
run: ./gradlew clean build -x test

Check failure on line 26 in .github/workflows/deploy-dev.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-dev.yaml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Upload JAR to Oracle Cloud
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USER }}
key: ${{ secrets.OCI_SSH_KEY }}
port: ${{ secrets.OCI_PORT }}
source: "build/libs/TOMO-0.0.1-SNAPSHOT.jar"
target: "/home/ubuntu/app"
- name: Restart TOMO service
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USER }}
key: ${{ secrets.OCI_SSH_KEY }}
port: ${{ secrets.OCI_PORT }}
script: |
sudo systemctl restart tomo