Compare commits

...

3 commits

Author SHA1 Message Date
82a625feb6 renaming of image
Some checks failed
Vib Build / check_update (push) Failing after 1m4s
Vib Build / build (push) Has been skipped
2024-12-23 15:25:18 +01:00
Tau
309b435834
clarify location of vib-build.yml 2024-12-15 14:32:21 +01:00
Tau
017b38829c adds disclaimer for upgrades of deb packages to readme 2024-12-15 11:48:38 +01:00
4 changed files with 10 additions and 58 deletions

View file

@ -1,46 +0,0 @@
name: Release
on:
push:
tags:
- '*'
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
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/vib-gh-action@v0.8.1
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'

View file

@ -11,7 +11,7 @@ on:
workflow_dispatch: workflow_dispatch:
env: env:
CUSTOM_IMAGE_NAME: custom CUSTOM_IMAGE_NAME: vanilla-os-image
BUILDX_NO_DEFAULT_ATTESTATIONS: 1 BUILDX_NO_DEFAULT_ATTESTATIONS: 1
jobs: jobs:
@ -44,7 +44,7 @@ jobs:
- name: Get last successful run - name: Get last successful run
if: ${{ github.ref_type == 'branch' }} if: ${{ github.ref_type == 'branch' }}
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUBI_TOKEN }}
continue-on-error: true continue-on-error: true
run: | run: |
gh run list -b "${{ github.ref_name }}" -w "${{ github.workflow }}" -s "success" -L 1 --json databaseId > last_run.json gh run list -b "${{ github.ref_name }}" -w "${{ github.workflow }}" -s "success" -L 1 --json databaseId > last_run.json
@ -145,7 +145,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUBI_TOKEN }}
- name: Build and Push the Docker image - name: Build and Push the Docker image
id: push id: push

View file

@ -10,10 +10,10 @@ This template repository is a starting point for creating custom [Vib images](ht
- First, click on the <kbd>Use this template</kbd> button in the top right corner, then from the drop-down menu select <kbd>Create a new repository</kbd>. This would create a new repository with the same files and directories as this repository. - First, click on the <kbd>Use this template</kbd> button in the top right corner, then from the drop-down menu select <kbd>Create a new repository</kbd>. This would create a new repository with the same files and directories as this repository.
- Go to **Settings → Actions → General** and ensure "_Allow all actions and reusable workflows_" are enabled. - Go to **Settings → Actions → General** and ensure "_Allow all actions and reusable workflows_" are enabled.
- Now, clone the repository to your local machine and let's start customizing your image. You can also use the GitHub online editor if you prefer. - Now, clone the repository to your local machine and let's start customizing your image. You can also use the GitHub online editor if you prefer.
- Open the `vib-build.yml` workflow file and replace the custom image name with an image name of your choosing in line 14. - Open the `vib-build.yml` workflow file in the `.github/workflows` folder and replace the custom image name with an image name of your choosing in line 14.
- Open the `recipe.yml` file and replace the image name and ID with your image name and ID in lines 1 and 2. - Open the `recipe.yml` file and replace the image name and ID with your image name and ID in lines 1 and 2.
- Now, perform your additions and modifications to the recipe as per your requirements. - Now, perform your additions and modifications to the recipe as per your requirements.
- If you just want to install `.deb` files, you can just put them in `includes.container/deb-pkgs` - If you just want to install `.deb` files, you can just put them in `includes.container/deb-pkgs` (if you choose this option, make sure to keep the .deb file up to date, it will not be upgraded automatically)
- Optionally, add your modules to the `modules` directory and add them to the package-modules `includes` in `recipe.yml`. - Optionally, add your modules to the `modules` directory and add them to the package-modules `includes` in `recipe.yml`.
- You can check the Actions tab in GitHub to see the build progress of your image. - You can check the Actions tab in GitHub to see the build progress of your image.

View file

@ -1,11 +1,11 @@
name: Custom Vanilla Desktop # Replace this name with your image name name: Yanick Desktop # Replace this name with your image name
id: custom # Replace this ID with your image ID id: vanilla-os-image # Replace this ID with your image ID
stages: stages:
- id: build - id: build
base: ghcr.io/vanilla-os/desktop:main # Optionally, Replace this image URL with a different one i.e. nvidia:main, etc base: ghcr.io/vanilla-os/nvidia:main # Optionally, Replace this image URL with a different one i.e. nvidia:main, etc
singlelayer: false singlelayer: false
labels: labels:
maintainer: self-maintained # Optionally, Replace this with your name maintainer: ItzYanick # Optionally, Replace this with your name
args: args:
DEBIAN_FRONTEND: noninteractive # Set the image environment as non-interactive DEBIAN_FRONTEND: noninteractive # Set the image environment as non-interactive
@ -38,9 +38,7 @@ stages:
type: includes type: includes
includes: includes:
- modules/50-install-debs.yml # Sample local module present in this repository - modules/50-install-debs.yml # Sample local module present in this repository
- gh:vanilla-os/dev-image:main:modules/00-basics.yml # Sample GitHub remote module in the format: `gh:your-name/your-repo:branch:modules/file.yml`
- https://raw.githubusercontent.com/Vanilla-OS/dev-image/main/modules/05-go.yml # Sample full URL remote module
# Put your custom actions above this comment # Put your custom actions above this comment
- name: set-image-name-abroot - name: set-image-name-abroot