From 82a625feb63a2ec543f3dcf8c6a312aa2c171cb2 Mon Sep 17 00:00:00 2001 From: Yanick Stephan Date: Mon, 23 Dec 2024 15:25:18 +0100 Subject: [PATCH] renaming of image --- .github/workflows/release.yml | 46 --------------------------------- .github/workflows/vib-build.yml | 6 ++--- recipe.yml | 12 ++++----- 3 files changed, 8 insertions(+), 56 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 216db49..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/vib-build.yml b/.github/workflows/vib-build.yml index 5c25b40..1a02633 100644 --- a/.github/workflows/vib-build.yml +++ b/.github/workflows/vib-build.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: env: - CUSTOM_IMAGE_NAME: custom + CUSTOM_IMAGE_NAME: vanilla-os-image BUILDX_NO_DEFAULT_ATTESTATIONS: 1 jobs: @@ -44,7 +44,7 @@ jobs: - name: Get last successful run if: ${{ github.ref_type == 'branch' }} env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUBI_TOKEN }} continue-on-error: true run: | 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: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GITHUBI_TOKEN }} - name: Build and Push the Docker image id: push diff --git a/recipe.yml b/recipe.yml index 0f7b509..48b9b12 100644 --- a/recipe.yml +++ b/recipe.yml @@ -1,11 +1,11 @@ -name: Custom Vanilla Desktop # Replace this name with your image name -id: custom # Replace this ID with your image ID +name: Yanick Desktop # Replace this name with your image name +id: vanilla-os-image # Replace this ID with your image ID stages: - 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 labels: - maintainer: self-maintained # Optionally, Replace this with your name + maintainer: ItzYanick # Optionally, Replace this with your name args: DEBIAN_FRONTEND: noninteractive # Set the image environment as non-interactive @@ -38,9 +38,7 @@ stages: type: includes includes: - 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 - name: set-image-name-abroot