+
Skip to content

Conversation

taylorludwig
Copy link
Contributor

Idea of this is to consolidate the various duplicated workflows for running build and release with goreleaser

Eg:
https://github.com/OpenCHAMI/cloud-init/blob/main/.github/workflows/Release.yml
https://github.com/OpenCHAMI/power-control/blob/main/.github/workflows/build_and_release_image.yaml

This was tested in the forked cloud-init repo here
https://github.com/taylorludwig/openchami-cloud-init/actions/runs/17054100485/job/48348236470
with artifacts seen
https://github.com/taylorludwig/openchami-cloud-init/pkgs/container/openchami-cloud-init
https://github.com/taylorludwig/openchami-cloud-init/releases

Once this is merged and tagged we can then update the cloud-init and power-control workflows to look something like:

name: Release with goreleaser

on:
  workflow_dispatch:
  push:
    tags:
      - v*

jobs:
  release:
    uses: OpenCHAMI/github-actions/workflows/go-build-release.yml@v2
    with:
      cgo-enabled: "0"
      pre-build-commands: |
        go install github.com/swaggo/swag/cmd/swag@latest
      attestation-binary-path: "dist/cloud-init*"
      registry-name: ghcr.io/openchami/cloud-init

@alexlovelltroy
Copy link
Member

The failing tests here seem to represent problems with the tests rather than problems with the PR. Trying out a few things to ensure this gives me the flexibility I'd like. Early indications are good.

@alexlovelltroy alexlovelltroy merged commit 926d5c8 into OpenCHAMI:main Aug 21, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载