Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManWhoLikesToCode authored Jan 6, 2024
1 parent 6af767a commit 7f912ed
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

backend-build:

runs-on: ubuntu-latest

steps:
- name: Checkout backend code
uses: actions/checkout@v3
with:
path: 'backend'
- name: Build the Docker image for backend
run: docker build ./backend --file backend/Dockerfile --tag backend-image-name:$(date +%s)

frontend-build:

runs-on: ubuntu-latest

steps:
- name: Checkout frontend code
uses: actions/checkout@v3
with:
path: 'frontend'
- name: Build the Docker image for frontend
run: docker build ./frontend --file frontend/Dockerfile --tag frontend-image-name:$(date +%s)

0 comments on commit 7f912ed

Please sign in to comment.