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

fu: port to vib action, add dependabot config #12

Merged
merged 2 commits into from
Jan 4, 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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/gen_package_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ for line in $(dpkg -l --no-pager); do
done

packages="[${packages%,}]"
printf "\"packages\":%s\n" "$packages"
printf "\"packages\":%s\n" "$packages"
2 changes: 1 addition & 1 deletion .github/workflows/differ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
-H 'Accept:application/json' \
-H "Authorization:Basic $(echo -n "${{ secrets.DIFFER_USER }}:${{ secrets.DIFFER_PSW }}" | base64)" \
-d "{\"digest\":\"${IMAGE_DIGEST}\",${PACKAGE_LIST}}" \
${{ vars.DIFFER_URL }}/images/pico/new
${{ vars.DIFFER_URL }}/images/pico/new
4 changes: 2 additions & 2 deletions .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/vanilla-os/pico:main"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: vanilla-pico-rootfs
path: rootfs/vanilla-pico.tar.zst
Expand All @@ -55,4 +55,4 @@ jobs:
name: "Continuous Build"
files: |
rootfs/vanilla-pico.tar.gz
rootfs/SHA256SUMS
rootfs/SHA256SUMS
15 changes: 5 additions & 10 deletions .github/workflows/vib-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,20 @@ jobs:
cd rootfs
sudo sh build.sh
cd ..

- name: Vib
run: |
wget https://github.com/Vanilla-OS/Vib/releases/download/v0.3.1/vib
chmod +x vib
./vib build recipe.yml
sed -i '/\/var\/tmp\/*/{d}' Containerfile


- uses: vanilla-os/[email protected]

- name: Build the Docker image
run: podman image build -f Containerfile --tag vanillaos/pico:validation .

- name: Upload vanilla-pico-rootfs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vanilla-pico-rootfs
path: rootfs/vanilla-pico.tar.zst

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