Files
pfannkuchen/.gitea/workflows/ci.yml
T
2026-05-31 18:38:14 +08:00

22 lines
578 B
YAML

name: Docker Image CI
on:
push:
branches:
- '**'
- '!feature/**'
- '!bugfix/**'
- '!hotfix/**'
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push to Local Registry
run: |
echo "${{ secrets.ACCESS_TOKEN }}" | docker login 127.0.0.1:3000 --username "${{ gitea.actor }}" --password-stdin
docker build . --tag 127.0.0.1:3000/${{ gitea.repository }}:latest
docker push 127.0.0.1:3000/${{ gitea.repository }}:latest