srghaer
CI / Load gitea-env.conf to pipeline env (push) Successful in 12s
ci-check-running Checking version...
ci-check Build version 0.1.0 required
ci-cucumber Cucumber tests
ci-bats Bats tests
ci-build Build complete
CI / Build & Push Artifact (push) Successful in 2m29s

This commit is contained in:
moilanik
2026-06-14 13:25:04 +03:00
parent ccf833d698
commit 416939fb82
3 changed files with 31 additions and 5 deletions
@@ -35,6 +35,7 @@ jobs:
- name: Check existing artifact
id: check
run: |
bash scripts/report-status.sh pending "Checking version..." ci-check-running
VERSION=$(jq -r '.version' package.json)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
@@ -105,6 +106,7 @@ jobs:
shell: bash
id: build
run: |
bash scripts/report-status.sh pending "Building Docker image..." ci-docker-build-running
VERSION="${{ needs.check.outputs.version }}"
NOW=$(date -u +%Y-%m-%dT%H:%M:%SZ)
docker build \
@@ -163,6 +165,7 @@ jobs:
shell: bash
id: push
run: |
bash scripts/report-status.sh pending "Pushing to registry..." ci-docker-push-running
VERSION="${{ needs.check.outputs.version }}"
docker load -i /tmp/image/artifact.tar
REGISTRY=$(echo "$GITEA_API_URL" | sed 's|https://||')
@@ -195,6 +198,7 @@ jobs:
shell: bash
id: tag
run: |
bash scripts/report-status.sh pending "Creating tag..." ci-docker-tag-running
VERSION="${{ needs.check.outputs.version }}"
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \
"$GITEA_API_URL/api/v1/repos/${{ github.repository }}/tags" \