mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
21dc0e21b3
the release tag CI is run when semantic versioned tags are pushed. it is presumed that the commit and/or PR to the release branch being tagged has already passed the lints. this gets around Github Actions CI running check-proto-breaking-remote which compares the pushed commit against _master_ (not the previous release)
33 lines
1000 B
YAML
33 lines
1000 B
YAML
name: Continuous Integration (Release)
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v[0-9]+.[0-9]+.[0-9]+*"
|
|
jobs:
|
|
# run default ci checks against released version
|
|
default-checks:
|
|
uses: ./.github/workflows/ci-default.yml
|
|
|
|
# get the version tag that triggered this workflow
|
|
get-version-tag:
|
|
# prep version release only if all checks pass
|
|
needs: default-checks
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
git-tag: ${{ steps.git-tag.outputs.tag }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- id: git-tag
|
|
run: echo "tag=$(git describe --always --tags --match='v*')" >> $GITHUB_OUTPUT
|
|
|
|
# build and upload versions of kava for use on internal infrastructure
|
|
# configurations for databases, cpu architectures and operating systems
|
|
docker:
|
|
# only run if all checks pass
|
|
needs: get-version-tag
|
|
uses: ./.github/workflows/ci-docker.yml
|
|
with:
|
|
dockerhub-username: kavaops
|
|
extra-image-tag: ${{ needs.get-version-tag.outputs.git-tag }}
|
|
secrets: inherit
|