change repo #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vib Build | |
on: | |
push: | |
branches: [ "test" ] | |
workflow_dispatch: | |
env: | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rootfs | |
run: | | |
sudo apt install -y debootstrap podman | |
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 | |
- name: Build the Docker image | |
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/pico:main . | |
# Push the image to GHCR (Image Registry) | |
- name: Push To GHCR | |
run: | | |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }} | |
docker image push "ghcr.io/vanilla-os/pico:test" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: vanilla-pico-rootfs | |
path: rootfs/vanilla-pico.tar.zst | |
# Push the image to Nexus (Image Registry) | |
# - name: Push To Registry | |
# uses: redhat-actions/[email protected] | |
# with: | |
# image: vanillaos/pico | |
# tags: ${{ github.ref_name }} | |
# registry: ${{ secrets.NEXUS_REGISTRY }} | |
# username: ${{ secrets.NEXUS_USER }} | |
# password: ${{ secrets.NEXUS_PSW }} | |
# tls-verify: false | |
# Push the image to GHCR (Image Registry) [Old] | |
# - name: Push To GHCR | |
# uses: redhat-actions/[email protected] | |
# with: | |
# registry: ${{ env.IMAGE_REGISTRY }} | |
# image: pico | |
# tags: ${{ github.ref_name }} | |
# username: ${{ env.REGISTRY_USER }} | |
# password: ${{ env.REGISTRY_PASSWORD }} | |
# extra-args: | | |
# --disable-content-trust |