ci: better script (#13)
Release package / release (push) Failing after 5m27s

Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
2026-03-30 06:42:11 +00:00
parent deae7bcf64
commit 93b6221ff6
5 changed files with 10 additions and 171 deletions
+6 -8
View File
@@ -67,6 +67,9 @@ jobs:
- name: Format code
run: pnpm format
- name: Build application
run: pnpm build
- name: Release
env:
GITEA_USER: ${{ github.actor }}
@@ -98,15 +101,8 @@ jobs:
git push
fi
build-and-push:
needs: release
if: gitea.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to Gitea Container Registry
if: gitea.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
registry: git.demonkernel.io.vn
@@ -114,6 +110,7 @@ jobs:
password: ${{ secrets.ACCESS_TOKEN }}
- name: Prepare Docker Metadata
if: gitea.ref == 'refs/heads/main'
id: meta
run: |
# Lowercase Repository
@@ -127,6 +124,7 @@ jobs:
echo "version=$VERSION_LOWER" >> $GITHUB_OUTPUT
- name: Build and Push Docker Image
if: gitea.ref == 'refs/heads/main'
uses: docker/build-push-action@v4
with:
context: .