Skip to content

Commit

Permalink
feat: Updating main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IAreKyleW00t committed Aug 31, 2024
1 parent 870fd1a commit 21f0e84
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Main
name: Action Test & Release

on:
push:
branches: [main]
paths:
- .github/workflows/main.yml
- action.yml
pull_request:
branches: [main]
paths:
- .github/workflows/main.yml
- action.yml

jobs:
test:
name: Test crane-installer Action
name: Test action
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
Expand All @@ -18,10 +24,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Install SLSA verifier
uses: slsa-framework/slsa-verifier/actions/[email protected]
uses: slsa-framework/slsa-verifier/actions/installer@3714a2a4684014deb874a0e737dffa0ee02dd647 # v2.6.0
if: matrix.slsa && runner.os == 'Linux' # doesn't work on Windows or macOS

- name: Install crane
Expand All @@ -39,11 +45,11 @@ jobs:
needs: [test]
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Bump version tag
id: tag
uses: mathieudutour/[email protected]
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -55,3 +61,10 @@ jobs:
git tag -f v$MAJOR.$MINOR
git push -f -u origin v$MAJOR
git push -f -u origin v$MAJOR.$MINOR
- name: Create GitHub release
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
tag_name: v${{ steps.tag.outputs.new_version }}
make_latest: true
generate_release_notes: true
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/IAreKyleW00t/crane-installer?label=version)](https://github.com/IAreKyleW00t/crane-installer/tags)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/IAreKyleW00t/crane-installer/main.yml)](https://github.com/IAreKyleW00t/crane-installer/actions/workflows/main.yml)
[![License](https://img.shields.io/github/license/IAreKyleW00t/crane-installer)](https://github.com/IAreKyleW00t/crane-installer/blob/main/LICENSE)
![Dependabot](https://img.shields.io/badge/dependabot-025E8C?style=flat&logo=dependabot&logoColor=white)

This GitHub Action enables you to interacting with remote images and registries using [`crane`](https://github.com/google/go-containerregistry/tree/main/cmd/crane). This action will verify the integrity of the `crane` release during installation if you setup [SLSA 3 provenance](https://slsa.dev/) (see notes and examples below).
This GitHub Action enables you to interacting with remote images and registries
using [`crane`](https://github.com/google/go-containerregistry/tree/main/cmd/crane).
This action will verify the integrity of the `crane` release during installation
if you setup [SLSA 3 provenance](https://slsa.dev/) (see notes and examples below).

For a quick start guide on the usage of `crane`, please refer to https://github.com/google/go-containerregistry/blob/main/cmd/crane/recipes.md. For available crane releases, see https://github.com/google/go-containerregistry/releases.
For a quick start guide on the usage of `crane`, please refer to
https://github.com/google/go-containerregistry/blob/main/cmd/crane/recipes.md.
For available crane releases, see https://github.com/google/go-containerregistry/releases.

---

Expand All @@ -29,7 +35,10 @@ The following tags are available for the `iarekylew00t/crane-installer` action.

## Usage

This action currently supports GitHub-provided Linux, macOS and Windows runners (self-hosted runners may not work). MacOS and Windows runners do not work with the [slsa-verifier](https://github.com/slsa-framework/slsa-verifier/tree/main/actions/installer) action, so integrity validation is skipped for those.
This action currently supports GitHub-provided Linux, macOS and Windows runners
(self-hosted runners may not work). MacOS and Windows runners do not work with the
[slsa-verifier](https://github.com/slsa-framework/slsa-verifier/tree/main/actions/installer)
action, so integrity validation is skipped for those.

Add the following entry to your Github workflow YAML file:

Expand Down Expand Up @@ -111,7 +120,9 @@ jobs:

## Contributing

Feel free to contribute and make things better by opening an [Issue](https://github.com/IAreKyleW00t/crane-installer/issues) or [Pull Request](https://github.com/IAreKyleW00t/crane-installer/pulls).
Feel free to contribute and make things better by opening an
[Issue](https://github.com/IAreKyleW00t/crane-installer/issues) or
[Pull Request](https://github.com/IAreKyleW00t/crane-installer/pulls).

## License

Expand Down

0 comments on commit 21f0e84

Please sign in to comment.