Skip to content

Commit

Permalink
jib 1차 속도테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmin99 committed Sep 5, 2024
1 parent 5ed50da commit 383fe3c
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
distribution: 'temurin'


- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# - name: Cache Gradle packages
# uses: actions/cache@v3
# with:
# path: ~/.gradle/caches
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# restore-keys: |
# ${{ runner.os }}-gradle-

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /home/runner/.cache/docker
key: ${{ runner.os }}-docker-${{ github.sha }}
restore-keys: |
${{ runner.os }}-docker-
# - name: Cache Docker layers
# uses: actions/cache@v3
# with:
# path: /home/runner/.cache/docker
# key: ${{ runner.os }}-docker-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-docker-

- name: Docker Hub login
uses: docker/login-action@v2
Expand All @@ -48,25 +48,25 @@ jobs:



deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: SSH to EC2
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
script: |
cd ~/want
if ! type docker > /dev/null; then
sudo snap install docker || echo "docker install failed"
else
echo "docker is already installed"
fi
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
chmod +x deploy.sh
./deploy.sh jsangmin00/want_project:latest
# deploy:
# runs-on: ubuntu-latest
# needs: build
#
# steps:
# - name: SSH to EC2
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.EC2_HOST }}
# username: ubuntu
# key: ${{ secrets.EC2_SSH_KEY }}
# port: 22
# script: |
# cd ~/want
# if ! type docker > /dev/null; then
# sudo snap install docker || echo "docker install failed"
# else
# echo "docker is already installed"
# fi
# sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# chmod +x deploy.sh
# ./deploy.sh jsangmin00/want_project:latest

0 comments on commit 383fe3c

Please sign in to comment.