Skip to content

Commit

Permalink
cicd : aws 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyaak committed Nov 12, 2024
1 parent 1f5a869 commit c6e8063
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/aws-api-module-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
echo "Pulling Docker image on bastion..."
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/techpick:${{ env.api-version }}-api-${{ github.sha }}
echo "Tagging Docker image..."
docker tag techpick:${{ env.api-version }}-api-${{ github.sha }} techpick:${{ env.api-version }}-api-staging
echo "Saving Docker image as a tar file..."
docker save -o /home/ubuntu/techpick-${{ env.api-version }}-api.tar ${{ secrets.DOCKERHUB_USERNAME }}/techpick:${{ env.api-version }}-api-${{ github.sha }}
Expand All @@ -74,9 +77,6 @@ jobs:
echo "Loading Docker image on target server..."
docker load -i /home/ubuntu/techpick-${{ env.api-version }}-api.tar
echo "Tagging Docker image..."
docker tag techpick:${{ env.api-version }}-api-${{ github.sha }} techpick:${{ env.api-version }}-api-staging
echo "Setting up environment variables..."
cd /home/ubuntu/project/server
rm -rf .env
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/aws-batch-module-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
echo "Pulling Docker image on bastion..."
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/techpick:${{ env.api-version }}-batch-${{ github.sha }}
echo "Tagging Docker image..."
docker tag techpick:${{ env.api-version }}-api-${{ github.sha }} techpick:${{ env.api-version }}-api-staging
echo "Saving Docker image as a tar file..."
docker save -o /home/ubuntu/techpick-${{ env.api-version }}-api.tar ${{ secrets.DOCKERHUB_USERNAME }}/techpick:${{ env.api-version }}-batch-${{ github.sha }}
Expand All @@ -73,9 +76,6 @@ jobs:
echo "Loading Docker image on target server..."
docker load -i /home/ubuntu/techpick-${{ env.api-version }}-api.tar
echo "Tagging Docker image..."
docker tag techpick:${{ env.api-version }}-api-${{ github.sha }} techpick:${{ env.api-version }}-api-staging
echo "Setting up environment variables..."
cd /home/ubuntu/project/server
rm -rf .env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)
public class TechPickApiApplication {
public static void main(String[] args) {
// 테스트를 위한 주석 추가!!!
// 테스트를 위한 주석 추가!!!!
SpringApplication.run(TechPickApiApplication.class, args);
}
}

0 comments on commit c6e8063

Please sign in to comment.