chore(deps): pin rust docker tag to 29fe437 #492
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
docker-build: | |
uses: PurpleBooth/common-pipelines/.github/workflows/docker-build.yml@main | |
lint-markdown: | |
uses: PurpleBooth/common-pipelines/.github/workflows/markdown-check.yml@main | |
commit-checks: | |
uses: PurpleBooth/common-pipelines/.github/workflows/commit-check.yml@main | |
rust-checks: | |
uses: PurpleBooth/common-pipelines/.github/workflows/rust-check.yml@main | |
specdown: | |
uses: PurpleBooth/common-pipelines/.github/workflows/specdown-check.yml@main | |
release: | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- specdown | |
- lint-markdown | |
- rust-checks | |
- commit-checks | |
- docker-build | |
outputs: | |
current_version: ${{ steps.current_version.outputs.current_version }} | |
previous_version: ${{ steps.previous_version.outputs.previous_version }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- uses: cargo-bins/cargo-binstall@main | |
name: Install cargo binstall | |
- name: Get tags | |
run: git fetch --tags origin | |
- shell: bash | |
run: cargo binstall --no-confirm cargo-edit | |
- shell: bash | |
run: cargo binstall --no-confirm --locked cocogitto | |
- id: previous_version | |
run: | | |
cog get-version | tee .version | |
echo "previous_version=$( cat .version )" >> "$GITHUB_OUTPUT" | |
rm .version | |
shell: bash | |
- name: Semver release | |
id: release | |
run: | | |
git config --global user.name "cog-bot" | |
git config --global user.email "cog@example.com" | |
cog bump --auto | |
- id: current_version | |
run: | | |
cog get-version | tee .version | |
echo "current_version=$( cat .version )" >> "$GITHUB_OUTPUT" | |
rm .version | |
shell: bash | |
release-binary: | |
if: needs.release.outputs.current_version != needs.release.outputs.previous_version | |
needs: | |
- release | |
uses: PurpleBooth/common-pipelines/.github/workflows/release-rust-binary.yml@main | |
with: | |
current_version: ${{ needs.release.outputs.current_version }} | |
previous_version: ${{ needs.release.outputs.previous_version }} | |
secrets: | |
committer_token: ${{ secrets.COMMITTER_TOKEN }} | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
docker-push: | |
if: needs.release.outputs.current_version != needs.release.outputs.previous_version | |
needs: | |
- release | |
uses: PurpleBooth/common-pipelines/.github/workflows/docker-push.yml@main | |
with: | |
current_version: ${{ needs.release.outputs.current_version }} |