Skip to content

adjust the guide "convert entrypoint to pebble layer" #3481

adjust the guide "convert entrypoint to pebble layer"

adjust the guide "convert entrypoint to pebble layer" #3481

Workflow file for this run

name: Spread
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 0 */2 * *"
jobs:
snap-build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build snap
uses: snapcore/action-build@v1
id: rockcraft
- name: Upload snap artifact
uses: actions/upload-artifact@v4
with:
name: snap
path: ${{ steps.rockcraft.outputs.snap }}
snap-tests:
runs-on: [self-hosted, spread-installed]
needs: [snap-build]
steps:
- name: Cleanup job workspace
run: |
rm -rf "${{ github.workspace }}"
mkdir "${{ github.workspace }}"
- name: Checkout rockcraft
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Download snap artifact
uses: actions/download-artifact@v4
with:
name: snap
path: tests
- name: Run spread
run: spread
- name: Discard spread workers
if: always()
run: |
shopt -s nullglob
for r in .spread-reuse.*.yaml; do
spread -discard -reuse-pid="$(echo "$r" | grep -o -E '[0-9]+')"
done