Skip to content

Updated Docker deployment in the Github Actions. #8

Updated Docker deployment in the Github Actions.

Updated Docker deployment in the Github Actions. #8

name: Docker Deployment Pipeline
on:
push:
branches:
- main
- github-actions
pull_request:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Checkout Code
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push all services
run: |
docker compose build
docker compose push