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

feat: port to vib-action, add dependabot config #18

Merged
merged 1 commit 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/core/new
${{ vars.DIFFER_URL }}/images/core/new
7 changes: 2 additions & 5 deletions .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Vib
run: |
wget https://github.com/Vanilla-OS/Vib/releases/download/v0.3.1/vib
chmod +x vib
./vib build recipe.yml
- uses: vanilla-os/[email protected]

- name: Build the Docker image
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/core:main .

# Push the image to GHCR (Image Registry)
- name: Push To GHCR
if: github.repository == 'vanilla-os/core-image'
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/vanilla-os/core:main"
8 changes: 2 additions & 6 deletions .github/workflows/vib-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Vib
run: |
wget https://github.com/Vanilla-OS/Vib/releases/download/v0.3.1/vib
chmod +x vib
./vib build recipe.yml
- uses: vanilla-os/[email protected]

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

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Containerfile
path: Containerfile
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Vanilla OS Core Image

Containerfile for building a vanilla OS Core image.

> This image is not intended to be used directly. It is used as a base image for other images.
Expand All @@ -12,4 +13,3 @@ You need the [Vib](https://github.com/vanilla-os/Vib) tool to generate the Conta
vib build recipe.yml
podman image build -t vanillaos/core .
```

Original file line number Diff line number Diff line change
@@ -1 +1 @@
deb https://download.opensuse.org/repositories/home:/fabricators:/orchid/Debian_Unstable/ ./
deb https://download.opensuse.org/repositories/home:/fabricators:/orchid/Debian_Unstable/ ./
2 changes: 1 addition & 1 deletion includes.container/usr/share/ikaros/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"pkgmanager": "abroot",
"debug": false
}
}