captains-log/.forgejo/workflows/docker.yml
Drew Galbraith 287759fc9b
Some checks failed
Docker Build / Build and Push Backend Image (push) Failing after 55s
Docker Build / Build and Push Frontend Image (push) Failing after 46s
Check / Backend (pull_request) Successful in 5m58s
Check / Frontend (pull_request) Successful in 1m55s
Add a docker build step.
2025-09-28 21:35:00 -07:00

44 lines
1 KiB
YAML

name: Docker Build
on:
push:
branches: [ main, docker ]
jobs:
docker-backend:
name: Build and Push Backend Image
runs-on: docker
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./backend
push: true
tags: drew/captains-log-backend
cache-from: type=gha
cache-to: type=gha,mode=max
docker-frontend:
name: Build and Push Frontend Image
runs-on: docker
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./frontend
push: true
tags: drew/captains-log-frontend
cache-from: type=gha
cache-to: type=gha,mode=max