diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f28434e..e6e0982 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,20 +29,15 @@ jobs: # after the artifacts build, so a failed build leaves no tag behind - name: Compute Version id: tag_version - uses: mathieudutour/github-tag-action@af99e60ce8132224b8e6ebab5023449fe256ed46 # v7.0.0 + uses: cruxstack/gh-create-semver-tag-action@81a68a34ab1fb48f4568ddd10e76caf9a608108e # v1.0.0 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - dry_run: true - default_bump: minor - # a custom rule that matches a commit's type wins over the default - # "breaking change -> major" rule, so types that carry breaking - # changes (feat, fix, refactor) must not be listed here. feat and - # fix use the default rules, and refactor uses default_bump. - custom_release_rules: bug:patch:Fixes,chore:patch:Chores,docs:patch:Documentation,test:patch:Tests,ci:patch:Development,dev:patch:Development + dry-run: true + bump-default: minor + bump-rules: bug:patch:Fixes,chore:patch:Chores,docs:patch:Documentation,test:patch:Tests,ci:patch:Development,dev:patch:Development - name: Build Artifacts - if: steps.tag_version.outputs.new_tag != '' + if: steps.tag_version.outputs.tag != '' env: - VERSION: ${{ steps.tag_version.outputs.new_tag }} + VERSION: ${{ steps.tag_version.outputs.tag }} run: | mkdir -p release for arch in amd64 arm64; do @@ -53,19 +48,19 @@ jobs: done (cd release && sha256sum *.tar.gz *.zip > checksums.txt) - name: Setup Buildx - if: steps.tag_version.outputs.new_tag != '' + if: steps.tag_version.outputs.tag != '' uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Build Container Image - if: steps.tag_version.outputs.new_tag != '' + if: steps.tag_version.outputs.tag != '' env: - VERSION: ${{ steps.tag_version.outputs.new_tag }} + VERSION: ${{ steps.tag_version.outputs.tag }} run: docker buildx build --platform linux/amd64,linux/arm64 --build-arg VERSION="$VERSION" . - name: Create Release - if: steps.tag_version.outputs.new_tag != '' - uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0 + if: steps.tag_version.outputs.tag != '' + uses: cruxstack/gh-create-release-action@3a56a12ce0c6e8083dc90eb7f77805d72423b3fe # v1.0.0 with: - tag: ${{ steps.tag_version.outputs.new_tag }} - commit: ${{ github.sha }} - name: ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} - artifacts: release/* + release-tag: ${{ steps.tag_version.outputs.tag }} + release-target: ${{ github.sha }} + release-body: ${{ steps.tag_version.outputs.changelog }} + release-if-exists: skip + release-assets: release/* diff --git a/Dockerfile b/Dockerfile index 36b43e9..108671f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # The builder runs on the build machine's platform and cross-compiles for # the target platform, so multi-platform builds need no emulation. -FROM --platform=$BUILDPLATFORM golang:1.27.3-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.27.4-alpine AS builder WORKDIR /src diff --git a/go.mod b/go.mod index f26b65d..b60dcd9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cruxstack/github-ops-app -go 1.27.3 +go 1.27.4 require ( github.com/aws/aws-lambda-go v1.55.1