Skip to content

Added better validation #3

Added better validation

Added better validation #3

Workflow file for this run

name: Build and Push Backend Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build images with Docker Compose
run: |
set -e
docker compose build
- name: Push images with Docker Compose
run: |
set -e
docker compose push