Skip to content

remove file from release in workflow #14

remove file from release in workflow

remove file from release in workflow #14

Workflow file for this run

name: Vib Build
on:
push:
branches: [ "main" ]
schedule:
- cron: '5 * * * *'
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
check_update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check if there was an update to the base image
if: github.event_name != 'schedule'
run: |
sudo apt-get install jq
bash ${GITHUB_WORKSPACE}/.github/workflows/check_image_update.sh
echo "exitcode=$?" >> "$GITHUB_OUTPUT"
curl https://differ.vanillaos.org/images/desktop > vanilla-image-info
echo "digest=$(jq -r '.image.releases[-1].digest' vanilla-image-info)" > digest.txt
- name: Update triggered manually
if: github.event_name == 'schedule'
run: |
echo "exitcode=0" >> "$GITHUB_OUTPUT"
- name: Save digest
uses: softprops/action-gh-release@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: "save-digest"
name: "Keeps track of the current digest"
hello_world:
runs-on: ubuntu-latest
needs: check_update
if: needs.check_update.outputs.exitcode == 0
steps:
- name: Hello World
run: echo "Hello, world"
bye_world:
runs-on: ubuntu-latest
needs: check_update
if: needs.check_update.outputs.exitcode != 0
steps:
- name: Bye World
run: echo "Bye, world"
# build:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
#
# - uses: vanilla-os/[email protected]
# with:
# recipe: 'recipe.yml'
# plugins: 'Vanilla-OS/vib-fsguard:v1.2-1'
#
# - name: Build the Docker image
# run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/desktop:main .
#
# # Push the image to GHCR (Image Registry)
# - name: Push To GHCR
# if: github.repository == 'vanilla-os/desktop-image'
# run: |
# docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
# docker image push "ghcr.io/vanilla-os/desktop:main"