Skip to content

Commit

Permalink
Merge pull request #12 from sh1220/dev
Browse files Browse the repository at this point in the history
update: main.yml
  • Loading branch information
sh1220 authored Jul 11, 2024
2 parents d267555 + 4e739fc commit 3c24e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,13 @@ jobs:
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip

- name: deploy with AWS codeDeploy
run: aws deploy create-deployment \
run: |
aws deploy create-deployment \
--application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name ${{ env.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }} \
--s3-location bucket=${{ env.S3_BUCKET_NAME }},key=${{ env.PROJECT_NAME }}/$GITHUB_SHA.zip,bundleType=zip

- name: Set environment variables
run: |
echo "DATASOURCE_URL=${{ secrets.DATASOURCE_URL }}" >> $GITHUB_ENV
echo "DATASOURCE_USERNAME=${{ secrets.DATASOURCE_USERNAME }}" >> $GITHUB_ENV
echo "DATASOURCE_PASSWORD=${{ secrets.DATASOURCE_PASSWORD }}" >> $GITHUB_ENV
echo "JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "JWT_EXPIRED_IN=${{ secrets.JWT_EXPIRED_IN }}" >> $GITHUB_ENV
- name: Test AWS credentials
run: aws s3 ls
19 changes: 0 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,9 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.google.cloud.tools.jib' version '3.3.1'
}


jib {
to {
image = "sanha1998/text-me-docker-repo"
}
from {
image = "eclipse-temurin:11-jre"
}
container {
jvmFlags = ["-Xms128m", "-Xmx128m"]
environment = [
'DATASOURCE_URL': System.getenv('DATASOURCE_URL'),
'DATASOURCE_USERNAME': System.getenv('DATASOURCE_USERNAME'),
'DATASOURCE_PASSWORD': System.getenv('DATASOURCE_PASSWORD'),
'JWT_SECRET_KEY': System.getenv('JWT_SECRET_KEY'),
'JWT_EXPIRED_IN': System.getenv('JWT_EXPIRED_IN')
]
}
}
group = 'store.itpick'
version = '0.0.1-SNAPSHOT'

Expand Down

0 comments on commit 3c24e2d

Please sign in to comment.