Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CI builds + attestation #3

Merged
merged 1 commit into from
May 9, 2024
Merged

feat: add CI builds + attestation #3

merged 1 commit into from
May 9, 2024

Conversation

protochron
Copy link
Contributor

@protochron protochron commented May 7, 2024

Add build pipelines for releasing the component and providers in this repository to ghcr. This also uses Github's new attestation support for generating build provenance as the final step of the release process.

@protochron protochron requested a review from joonas May 9, 2024 02:02
@protochron protochron marked this pull request as ready for review May 9, 2024 02:02
@protochron protochron changed the title wip feat: add CI builds + attestation May 9, 2024
wash par insert --arch aarch64-linux --binary "${{inputs.name }}-aarch64" "${{ inputs.name }}.par.gz"

wash push ${{env.REGISTRY}}/${{env.REPOSITORY}}/${{inputs.name}}:$GITHUB_SHA ${{inputs.name}}.par.gz
wash push ${{env.REGISTRY}}/${{env.REPOSITORY}}/${{inputs.name}}:$(git rev-parse --short HEAD) ${{inputs.name}}.par.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is admittedly nitpicky, but if you wanted to avoid having to fetch the short SHA to match GitHub's style, you could also use substring expansion with ${GITHUB_SHA::7} here

exit 1
fi
out=$(wash push ${{env.REGISTRY}}/${{env.REPOSITORY}}/cloud-hello:$GITHUB_SHA build/cloud_hello_s.wasm -o json)
wash push ${{env.REGISTRY}}/${{env.REPOSITORY}}/cloud-hello:$(git rev-parse --short HEAD) build/cloud_hello_s.wasm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as below about the substring expansion, replacing $(git rev-parse --short HEAD) with just ${GITHUB_SHA::7}

Add build pipelines for releasing the component and providers in this
repository to ghcr. This also uses Github's new attestation support for
generating build provenance as the final step of the release process.
@protochron protochron merged commit 037759e into main May 9, 2024
3 checks passed
@protochron protochron deleted the ci branch May 9, 2024 17:00
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