asg
CI / Load gitea-env.conf to pipeline env (push) Successful in 16s
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 2m30s
CI / Load gitea-env.conf to pipeline env (push) Successful in 16s
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 2m30s
This commit is contained in:
@@ -66,12 +66,14 @@ jobs:
|
||||
ARTIFACT_EXISTS="${{ steps.check.outputs.artifact_exists }}"
|
||||
ARTIFACT_TAG="${{ steps.check.outputs.artifact_tag }}"
|
||||
if [ "${{ steps.check.outcome }}" = "success" ]; then
|
||||
bash scripts/report-status.sh success "Checking version..." ci-check-running
|
||||
if [ "${ARTIFACT_EXISTS}" = "true" ]; then
|
||||
bash scripts/report-status.sh success "Skip build: version $VERSION exists as $ARTIFACT_TAG" ci-check
|
||||
else
|
||||
bash scripts/report-status.sh success "Build version $VERSION required" ci-check
|
||||
fi
|
||||
else
|
||||
bash scripts/report-status.sh failure "Checking version..." ci-check-running
|
||||
bash scripts/report-status.sh failure "Check version $VERSION FAILED" ci-check
|
||||
exit 1
|
||||
fi
|
||||
@@ -122,8 +124,10 @@ jobs:
|
||||
VERSION="${{ needs.check.outputs.version }}"
|
||||
BUILD_EXIT="${{ steps.build.outputs.exit-code }}"
|
||||
if [ "${BUILD_EXIT}" = "0" ]; then
|
||||
bash scripts/report-status.sh success "Building Docker image..." ci-docker-build-running
|
||||
bash scripts/report-status.sh success "Docker build $VERSION OK" ci-docker-build
|
||||
else
|
||||
bash scripts/report-status.sh failure "Building Docker image..." ci-docker-build-running
|
||||
bash scripts/report-status.sh failure "Docker build $VERSION FAILED" ci-docker-build
|
||||
fi
|
||||
exit ${BUILD_EXIT}
|
||||
@@ -182,8 +186,10 @@ jobs:
|
||||
VERSION="${{ needs.check.outputs.version }}"
|
||||
PUSH_EXIT="${{ steps.push.outputs.exit-code }}"
|
||||
if [ "${PUSH_EXIT}" = "0" ]; then
|
||||
bash scripts/report-status.sh success "Pushing to registry..." ci-docker-push-running
|
||||
bash scripts/report-status.sh success "Docker push $VERSION OK" ci-docker-push
|
||||
else
|
||||
bash scripts/report-status.sh failure "Pushing to registry..." ci-docker-push-running
|
||||
bash scripts/report-status.sh failure "Docker push $VERSION FAILED" ci-docker-push
|
||||
fi
|
||||
exit ${PUSH_EXIT}
|
||||
@@ -231,9 +237,11 @@ jobs:
|
||||
TAG_STATUS="${{ steps.tag.outputs.status }}"
|
||||
TAG_MESSAGE="${{ steps.tag.outputs.message }}"
|
||||
if [ "${TAG_STATUS}" = "success" ]; then
|
||||
bash scripts/report-status.sh success "Creating tag..." ci-docker-tag-running
|
||||
bash scripts/report-status.sh success "Tag $VERSION OK" ci-docker-tag
|
||||
else
|
||||
TAG_EXIT="${{ steps.tag.outputs.exit-code }}"
|
||||
bash scripts/report-status.sh failure "Creating tag..." ci-docker-tag-running
|
||||
bash scripts/report-status.sh failure "Tag $VERSION FAILED" ci-docker-tag
|
||||
exit ${TAG_EXIT}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user