Skip to content

Commit

Permalink
Create CI/CD Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
badass-techie authored Oct 15, 2023
1 parent f2cce36 commit c40d812
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-push-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Push Docker Images

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check Out Code
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and Push Docker Images
run: |
docker compose build
docker compose push

0 comments on commit c40d812

Please sign in to comment.