diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb3e7aba..11372cf5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -250,12 +250,12 @@ jobs: "${{ secrets.DOCKERHUB_PASSWORD }}" != "" ]]; \ then echo "Dockerhub secrets exist" - echo "::set-output name=has-secrets::true" + echo "has-secrets=true" >> $GITHUB_OUTPUT else echo "Dockerhub secrets do not exist; not pushing to Dockerhub" echo "Please set the following secrets on GitHub (settings > secrets > actions > new):" echo "DOCKERHUB_IMAGE, DOCKERHUB_USERNAME, DOCKERHUB_PASSWORD" - echo "::set-output name=has-secrets::false" + echo "has-secrets=false" >> $GITHUB_OUTPUT fi publish-dockerhub: diff --git a/doc/examples/example.yaml b/doc/examples/debian-example-ospack.yaml similarity index 52% rename from doc/examples/example.yaml rename to doc/examples/debian-example-ospack.yaml index 9375323e..18f72b65 100644 --- a/doc/examples/example.yaml +++ b/doc/examples/debian-example-ospack.yaml @@ -1,6 +1,6 @@ -{{- $architecture := or .architecture "arm64" -}} -{{- $suite := or .suite "buster" -}} -{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }} +{{ $architecture := or .architecture "arm64" }} +{{ $suite := or .suite "bullseye" }} +{{ $image := or .image (printf "debian-example-ospack-%s-%s.tar.gz" $suite $architecture) }} architecture: {{ $architecture }} @@ -9,25 +9,26 @@ actions: suite: {{ $suite }} components: - main - - contrib - - non-free mirror: https://deb.debian.org/debian variant: minbase - action: apt description: Install some packages - packages: [ sudo, openssh-server, adduser, systemd-sysv, firmware-linux ] + packages: + - sudo + - openssh-server + - adduser + - systemd-sysv - action: run chroot: true - script: setup-user.sh + script: scripts/setup-user.sh - action: overlay source: overlays/sudo - action: run - chroot: true - command: echo debian > /etc/hostname + command: echo debian > ${ROOTDIR}/etc/hostname - action: pack file: {{ $image }} diff --git a/doc/examples/setup-user.sh b/doc/examples/scripts/setup-user.sh similarity index 71% rename from doc/examples/setup-user.sh rename to doc/examples/scripts/setup-user.sh index da155d12..07b29ee9 100755 --- a/doc/examples/setup-user.sh +++ b/doc/examples/scripts/setup-user.sh @@ -3,7 +3,7 @@ set -e echo "I: create user" -adduser --gecos User user +adduser --gecos User --disabled-password user echo "I: set user password" echo "user:user" | chpasswd