Skip to content

Commit

Permalink
chore: CodeDeploy Script test
Browse files Browse the repository at this point in the history
  • Loading branch information
syber911911 committed Oct 22, 2024
1 parent 95a060f commit 021f3a9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,25 @@ jobs:
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
labels: ${{ steps.docker_meta.outputs.labels }}

# deploy:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_ID }}
# aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }}
# aws-region: ${{ secrets.AWS_REGION }}
#
# - name: Create CodeDeploy Deployment
# id: deploy
# run: |
# aws deploy create-deployment \
# --application-name ${{ secrets.AWS_DEPLOY_APP_NAME }} \
# --deployment-group-name ${{ secrets.AWS_DEPLOY_GROUP }} \
# --deployment-config-name ${{ secrets.AWS_DEPLOY_CONFIG }}
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Create CodeDeploy Deployment
id: deploy
run: |
aws deploy create-deployment \
--application-name ${{ secrets.AWS_DEPLOY_APP_NAME }} \
--deployment-group-name ${{ secrets.AWS_DEPLOY_GROUP }} \
--deployment-config-name ${{ secrets.AWS_DEPLOY_CONFIG }} \
--github-location repository=${{ secrets.REPO }},commitId=branch/main
dependency-submission:

Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions scripts/install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ else
sudo apt-get install -y docker.io
fi

## Docker Compose 설치 및 업데이트
#echo "Docker Compose 설치 중입니다..."
#sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
#sudo chmod +x /usr/local/bin/docker-compose
#
#echo "설치가 완료되었습니다. 현재 버전:"
#docker --version
#docker-compose --version
# Docker Compose 설치 및 업데이트
echo "Docker Compose 설치 중입니다..."
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

echo "설치가 완료되었습니다. 현재 버전:"
docker --version
docker-compose --version

0 comments on commit 021f3a9

Please sign in to comment.