Skip to content

Commit

Permalink
feat: Adds support for building and scanning rocks using a custom bra…
Browse files Browse the repository at this point in the history
…nch (#91)
  • Loading branch information
Gmerold authored Dec 5, 2024
1 parent e175e43 commit 7a75d95
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,25 @@ name: Build ROCK

on:
workflow_call:
inputs:
branch-name:
description: Name of the branch to checkout
required: false
type: string
default: ${{ github.ref }}

jobs:
build-rock:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch-name }}

- uses: canonical/craft-actions/rockcraft-pack@main
id: rockcraft

- uses: actions/upload-artifact@v4
with:
name: rock
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/scan-rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ name: Scan

on:
workflow_call:
inputs:
branch-name:
description: Name of the branch to checkout
required: false
type: string
default: ${{ github.ref }}

jobs:

Expand All @@ -13,6 +19,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch-name }}

- name: Install skopeo from rockcraft
run: |
Expand Down

0 comments on commit 7a75d95

Please sign in to comment.