Add Backend Dockerfile and workflow
All checks were successful
Build Feedmee Go Backend App / build-and-push (push) Successful in 1m22s
Build Feedmee Next.js Frontend App / build-and-push (push) Successful in 12s

This commit is contained in:
2025-10-16 15:12:54 +02:00
parent 1b85072c3c
commit 63c6031d66
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
name: Build Feedmee Go Backend App
defaults:
run:
working-directory: ./backend
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{vars.REGISTRY_URL}}
username: ${{vars.ACTOR}}
password: ${{secrets.TOKEN}}
- name: Build Docker image
run: |
docker build -f Dockerfile -t ${{vars.REGISTRY_URL}}/${{github.repository}}-backend-test:latest .
- name: Push Docker image
run: |
docker push ${{vars.REGISTRY_URL}}/${{github.repository}}-backend-test:latest