From 59d1bdf82831207739e5a4503cea7709b963b976 Mon Sep 17 00:00:00 2001 From: fvjr156 Date: Sun, 31 May 2026 18:38:14 +0800 Subject: [PATCH] chore: workflow update --- .gitea/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e69de29..eb05fa3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,22 @@ +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 \ No newline at end of file