File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 env :
3333 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
3434 ECR_REPOSITORY : devcolor00-school
35- IMAGE_TAG : dev
3635 run : |
37- docker build -f docker/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:dev .
3836 docker build -f docker/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:latest .
39- docker push $ECR_REGISTRY/$ECR_REPOSITORY:dev
4037 docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
4138
4239 # - name: Deploy to App Runner
Original file line number Diff line number Diff line change @@ -135,12 +135,12 @@ Standard HTTP status codes are used to indicate success or failure:
135135
1361361 . ** Build the Docker image:**
137137``` bash
138- docker build -f docker/Dockerfile -t devcolor-backend:dev .
138+ docker build -f docker/Dockerfile -t devcolor-backend:latest .
139139```
140140
1411412 . ** Run the container:**
142142``` bash
143- docker run -p 8000:8000 --env-file .env devcolor-backend:dev
143+ docker run -p 8000:8000 --env-file .env devcolor-backend:latest
144144```
145145
146146### Using Docker Compose
@@ -217,7 +217,7 @@ The workflow runs automatically on:
217217- Pushes to `main` or `develop` branches
218218- Pull requests to the `main` branch
219219
220- The Docker image will be tagged as `devcolor-backend:dev` and `devcolor-backend: latest` and pushed to ECR.
220+ The Docker image will be tagged as `latest` and pushed to ECR.
221221
222222**Install required packages:**
223223` ` ` bash
You can’t perform that action at this time.
0 commit comments