This repository has been archived on 2026-07-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drive/.forgejo/workflows/build.yml
Elijah 2a3aa32996
Some checks failed
Automated Container Build / build-and-push (push) Failing after 25s
Fix UI bugs, update CI, update gitignore
2026-05-22 17:57:26 -07:00

28 lines
No EOL
909 B
YAML

name: Automated Container Build
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Log into Local Registry
run: |
echo "${{ secrets.FORGEJO_PAT }}" | docker login git.elijahkuntz.com -u "${{ gitea.actor }}" --password-stdin
- name: Build and Push Images
run: |
# Force the entire image path string to lowercase dynamically
BASE_IMAGE_PATH=$(echo "git.elijahkuntz.com/${{ gitea.actor }}/${{ github.event.repository.name }}" | tr '[:upper:]' '[:lower:]')
docker build -t "${BASE_IMAGE_PATH}-frontend:latest" ./frontend
docker push "${BASE_IMAGE_PATH}-frontend:latest"
docker build -t "${BASE_IMAGE_PATH}-backend:latest" ./backend
docker push "${BASE_IMAGE_PATH}-backend:latest"