Add .gitea/workflows/build.yml
Some checks failed
Build and Push Docker Image / build (push) Failing after 4m39s

This commit is contained in:
2026-04-19 19:14:48 +00:00
parent de6732b60b
commit 8637d08620

View File

@@ -0,0 +1,29 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
git.prestonjo.se \
-u "${{ secrets.REGISTRY_USERNAME }}" \
--password-stdin
- name: Build Image
run: |
docker build -t git.prestonjo.se/admin/featuretest:latest .
- name: Push Image
run: |
docker push git.prestonjo.se/admin/featuretest:latest