Skip to content

fix : frontend chat connect bug #27

fix : frontend chat connect bug

fix : frontend chat connect bug #27

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: init with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
- run: gradle init
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
gradle-version: 8.4
arguments: build
## gradle caching
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
## deploy
deploy:
runs-on: ubuntu-latest
needs: build
steps:
# - name: Set up SSH
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Connect to EC2 and pull code and make
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > mykey.pem
chmod 400 mykey.pem
ssh -o StrictHostKeyChecking=no -i mykey.pem ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} \
'cd ${{ secrets.REPO_NAME }} && git pull origin main && sudo make'
# ssh -o StrictHostKeyChecking=no -i mykey.pem ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} \
# 'cd ${{ secrets.REPO_NAME }} && \
# git config --global user.email "[email protected]" && \
# git config --global user.name "Jay13Jeong" && \
# git pull https://${{ secrets.GITHUB_TOKEN }}@github.com/Jay13Jeong/${{ secrets.REPO_NAME }}.git main' || exit 1
# ssh -o StrictHostKeyChecking=no -i /dev/shm/ssh-key/id_rsa ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} 'cd ${{ secrets.REPO_NAME }} && git pull origin main'
# - name: Build with make
# run: |
# cd /home/ubuntu/${{ secrets.REPO_NAME }}
# sudo make
# - name: Build with make
# run: |
# cd ~
# mkdir -p ${{ secrets.REPO_NAME }}
# cd ${{ secrets.REPO_NAME }}
# git pull origin main && sudo make