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

cleanup: update files, use tags for modules #66

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Release

on:
push:
tags:
- '*'
workflow_dispatch:

env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

jobs:
verify-image:
runs-on: ubuntu-latest

steps:
- name: Verify Base Image Integrity
run:
gh attestation verify oci://ghcr.io/vanilla-os/pico:main --owner Vanilla-OS
env:
GH_TOKEN: ${{ github.token }}

release:
runs-on: ubuntu-latest
needs: verify-image
permissions:
contents: write # Allow actions to create release
attestations: write # To create and write attestations
id-token: write # Additional permissions for the persistence of the attestations

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: vanilla-os/[email protected]
with:
recipe: 'recipe.yml'
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3'

- uses: actions/upload-artifact@v4
with:
name: Containerfile
path: Containerfile

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --generate-notes Containerfile

- name: Attest Release Files
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: 'Containerfile'
5 changes: 2 additions & 3 deletions modules/00-vanilla-abroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: abroot
type: shell
source:
type: tar
# switch to production build once in production
url: https://github.com/Vanilla-OS/ABRoot/releases/download/continuous/abrootv2.tar.gz
url: https://github.com/Vanilla-OS/ABRoot/releases/download/v2.0.0/abrootv2.tar.gz
commands:
- apt install -y podman golang-github-containers-common patch wget
- mkdir -p /usr/bin
Expand All @@ -14,6 +13,6 @@ modules:
type: shell
source:
type: tar
url: https://github.com/Vanilla-OS/ABRoot/releases/download/continuous/abroot-man.tar.gz
url: https://github.com/Vanilla-OS/ABRoot/releases/download/v2.0.0/abroot-man.tar.gz
commands:
- mv /sources/abroot-manpage/man/man1/abroot.1 /usr/share/man/man1/
5 changes: 2 additions & 3 deletions modules/00-vanilla-apx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: apx
type: shell
source:
type: tar
# switch to production build once in production
url: https://github.com/Vanilla-OS/apx/releases/download/continuous/apx.tar.gz
url: https://github.com/Vanilla-OS/apx/releases/download/v2.4.3/apx.tar.gz
commands:
- mkdir -p /usr/bin
- cp /sources/apx/apx /usr/bin/apx
Expand All @@ -23,6 +22,6 @@ modules:
type: shell
source:
type: tar
url: https://github.com/Vanilla-OS/apx/releases/download/continuous/apx-man.tar.gz
url: https://github.com/Vanilla-OS/apx/releases/download/v2.4.3/apx-man.tar.gz
commands:
- mv /sources/apx-manpage/man/man1/apx.1 /usr/share/man/man1/
23 changes: 0 additions & 23 deletions modules/00-vanilla-ikaros.yml

This file was deleted.

1 change: 0 additions & 1 deletion recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ stages:
- modules/00-vanilla-base-files.yml
- modules/00-vanilla-apx.yml
- modules/00-vanilla-apx-stacks.yml
- modules/00-vanilla-ikaros.yml
- modules/03-fswarn.yml
- modules/05-firmware.yml
- modules/10-input-and-locale.yml
Expand Down
Loading