Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManWhoLikesToCode authored Jan 6, 2024
1 parent 888fba4 commit 76236c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
- name: Checkout backend code
uses: actions/checkout@v3
with:
path: 'backend'
context: './backend'
file: './backend/Dockerfile'
- name: Build the Docker image for backend
run: docker build ./backend --file backend/Dockerfile --tag backend-image-name:$(date +%s) .
run: docker build --tag backend-image-name:$(date +%s) .

frontend-build:

Expand All @@ -28,6 +29,7 @@ jobs:
- name: Checkout frontend code
uses: actions/checkout@v3
with:
path: 'frontend'
context: './frontend'
file: './frontend/Dockerfile'
- name: Build the Docker image for frontend
run: docker build ./frontend --file frontend/Dockerfile --tag frontend-image-name:$(date +%s) .
run: docker build --tag frontend-image-name:$(date +%s) .

0 comments on commit 76236c3

Please sign in to comment.