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 c07bda1 commit 0d5886a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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
- name: Build the Docker image for backend
run: docker build ./backend -t backend-image-name:$(date +%s)

frontend-build:

runs-on: ubuntu-latest

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

0 comments on commit 0d5886a

Please sign in to comment.