Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading