Skip to content

Commit

Permalink
make it so, yo
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdottoday committed Oct 17, 2023
1 parent ef546f9 commit 9150b67
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Deploy to ECR
name: Build & Deploy API Container to ECR

on:
push:
branches: [ main ]

jobs:
build:
name: Build Container Image
name: Build & Push API Container Image
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./service/api

steps:
- name: Check out code
Expand All @@ -33,7 +36,6 @@ jobs:

- name: Ls the working directory
shell: bash
working-directory: ./service/api
run: |
ls -la
cat Dockerfile
Expand All @@ -46,5 +48,5 @@ jobs:
IMAGE_TAG: latest
working-directory: ./service/api
run: |
docker build --build-arg="COMMITHASH=${{ env.sha_short }}" --build-context service_api=./service/api -t $ECR_REGISTRY/$ECR_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG .
docker build --build-arg="COMMITHASH=${{ env.sha_short }}" -t $ECR_REGISTRY/$ECR_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit 9150b67

Please sign in to comment.