Hayden Hargreaves 134c1627a4
Some checks failed
Build and Push to Gitea / build-and-push (push) Failing after 7s
cicd: implemented tests in the pipeline
2026-04-09 12:19:01 -07:00

45 lines
1.1 KiB
YAML

---
name: Build and Push to Gitea
on:
push:
branches: ["master"]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Backend Tests
env:
RUN_LIVE_OPENAI_TESTS: "0"
run: go test ./...
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.GIT_DOMAIN }}
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_TOKEN }}
# Build and Push Go Backend
- name: Build and Push Backend
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.GIT_DOMAIN }}/${{ secrets.GIT_USERNAME }}/resumelens/backend:latest
# Build and Push React Frontend
- name: Build and Push Frontend
uses: docker/build-push-action@v5
with:
context: ./web
push: true
tags: ${{ secrets.GIT_DOMAIN }}/${{ secrets.GIT_USERNAME }}/resumelens/frontend:latest