Skip to content

build(deps): bump release-drafter/release-drafter in the actions grou… #4

build(deps): bump release-drafter/release-drafter in the actions grou…

build(deps): bump release-drafter/release-drafter in the actions grou… #4

Workflow file for this run

# Copyright 2026 Thomson Reuters
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Publish
on:
push:
tags:
- "v*"
permissions:
contents: read
packages: write
env:
CHART_PATH: deployments/helm/gate
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CHART_REGISTRY_PATH: ghcr.io/${{ github.repository_owner }}/charts
# Manifest list digests (buildx auto-resolves per platform)
#
# Golang Alpine (builder image)
# Image: public.ecr.aws/docker/library/golang:1.26.1-alpine
# Per-platform:
# linux/amd64: sha256:d337ecb3075f0ec76d81652b3fa52af47c3eba6c8ba9f93b835752df7ce62946
# linux/arm64: sha256:c500d8fac0707aa2a887d7e426530cfef09549c9c87ac0c2998543a89ce89d86
GOLANG_DIGEST: sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039
# Distroless Static (runtime image)
# Image: gcr.io/distroless/static-debian13:nonroot
# Per-platform:
# linux/amd64: sha256:64c43684e6d2b581d1eb362ea47b6a4defee6a9cac5f7ebbda3daa67e8c9b8e6
# linux/arm64: sha256:95dc0c7fc206cb973055b373128e1902ea06b289ad4f36a7faed4ded9eda30a6
DISTROLESS_DIGEST: sha256:e3f945647ffb95b5839c07038d64f9811adf17308b9121d8a2b87b6a22a80a39
jobs:
build-image:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Extract version from tag
id: version
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
with:
platforms: linux/amd64,linux/arm64
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Login to GHCR
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Build and push
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.version.outputs.version }}
COMMIT=${{ github.sha }}
BUILD_DATE=${{ github.event.head_commit.timestamp }}
GOLANG_DIGEST=${{ env.GOLANG_DIGEST }}
DISTROLESS_DIGEST=${{ env.DISTROLESS_DIGEST }}
cache-from: type=gha
cache-to: type=gha,mode=max
publish-chart:
runs-on: ubuntu-latest
needs: build-image
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
- name: Set chart version
env:
VERSION: ${{ needs.build-image.outputs.version }}
run: |
sed -i "s/^version:.*/version: ${VERSION}/" "${{ env.CHART_PATH }}/Chart.yaml"
sed -i "s/^appVersion:.*/appVersion: \"${VERSION}\"/" "${{ env.CHART_PATH }}/Chart.yaml"
- name: Package chart
run: helm package "${{ env.CHART_PATH }}"
- name: Login to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login "${{ env.REGISTRY }}" -u "${{ github.actor }}" --password-stdin
- name: Push chart to GHCR
run: helm push gate-${{ needs.build-image.outputs.version }}.tgz "oci://${{ env.CHART_REGISTRY_PATH }}"