Add .github/workflows/docker-build.yml
Some checks failed
CI / Client — typecheck & build (push) Has been cancelled
CI / Server — typecheck & build (push) Has been cancelled
CI / Docker build (smoke test) (push) Has been cancelled
Build and Push Docker Image / build (push) Failing after 15s

This commit is contained in:
2026-03-29 13:57:52 -05:00
parent 31e539102b
commit 7c71af2a9f

25
.github/workflows/docker-build.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Build and Push Docker Image
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: registry.alwisp.com
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and Push
run: |
docker build -t registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest .
docker push registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest