-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change IMAGE_TAG and remove unused code.
- Loading branch information
Showing
1 changed file
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,12 @@ jobs: | |
with: | ||
envkey_VITE_API_URL: ${{ secrets.VITE_API_URL }} | ||
|
||
- name: Get current time | ||
uses: josStorer/[email protected] | ||
id: current-time | ||
with: | ||
format: YYYYMMDD-HHmmSS | ||
utcOffset: "+08:00" | ||
# - name: Get current time | ||
# uses: josStorer/[email protected] | ||
# id: current-time | ||
# with: | ||
# format: YYYYMMDD-HHmmSS | ||
# utcOffset: "+08:00" | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
|
@@ -47,27 +47,12 @@ jobs: | |
id: build-image | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
IMAGE_TAG: ${{ steps.current-time.outputs.formattedTime }} | ||
# IMAGE_TAG: ${{ steps.current-time.outputs.formattedTime }} | ||
IMAGE_TAG: production | ||
run: | | ||
# Build a docker container and | ||
# push it to ECR so that it can | ||
# be deployed to ECS. | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT | ||
# - name: Fill in the new image ID in the Amazon ECS task definition | ||
# id: task-def | ||
# uses: aws-actions/amazon-ecs-render-task-definition@v1 | ||
# with: | ||
# task-definition: task-definition.json | ||
# container-name: ${{ secrets.CONTAINER_NAME }} | ||
# image: ${{ steps.build-image.outputs.image }} | ||
|
||
# - name: Deploy Amazon ECS task definition | ||
# uses: aws-actions/amazon-ecs-deploy-task-definition@v1 | ||
# with: | ||
# task-definition: ${{ steps.task-def.outputs.task-definition }} | ||
# service: ${{ secrets.ECS_SERVICE }} | ||
# cluster: ${{ secrets.ECS_CLUSTER }} | ||
# wait-for-service-stability: true |