Closed airtonix closed 8 months ago
with the following workflow:
on: push: branches: - master permissions: contents: write pull-requests: write packages: write name: ReleaseManagement jobs: Release: runs-on: ubuntu-22.04 outputs: release_created: ${{ steps.release.outputs.release_created }} releases_created: ${{ steps.release.outputs.releases_created }} tag_name: ${{ steps.release.outputs.tag_name }} # e.g. v1.0.0 version: ${{ steps.release.outputs.version }} # e.g. 1.0.0 json: ${{ toJSON(steps.release.outputs) }} steps: - uses: google-github-actions/release-please-action@v3 if: ${{!github.event.act}} id: release-please with: token: ${{ secrets.GITHUB_TOKEN }} command: manifest release-type: go extra-files: | meta/package.go - id: release name: act interop run: | if [ "${{!github.event.act}}" == "false" ]; then echo "release_created=true" >> $GITHUB_OUTPUT echo "releases_created=true" >> $GITHUB_OUTPUT echo "tag_name=snapshot" >> $GITHUB_OUTPUT echo "version=snaphot" >> $GITHUB_OUTPUT else echo "release_created=${{ steps.release-please.outputs.release_created }}" >> $GITHUB_OUTPUT echo "releases_created=${{ steps.release-please.outputs.releases_created }}" >> $GITHUB_OUTPUT echo "tag_name=${{ steps.release-please.outputs.tag_name }}" >> $GITHUB_OUTPUT echo "version=${{ steps.release-please.outputs.version }}" >> $GITHUB_OUTPUT fi Build: if: needs.Release.outputs.releases_created runs-on: ubuntu-22.04 needs: [Release] env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} steps: - uses: actions/checkout@v3 with: fetch-depth: 0 fetch-tags: true # - name: Set up QEMU # uses: docker/setup-qemu-action@v2 # - uses: docker/setup-buildx-action@v2 # - name: Docker Login # uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 # with: # registry: ${{ env.REGISTRY }} # username: ${{ github.actor }} # password: ${{ secrets.GITHUB_TOKEN }} - name: setup jetpack devbox uses: jetpack-io/devbox-install-action@v0.7.0 - name: Run GoReleaser env: registry: ${{ env.REGISTRY }} IMAGE_NAME: ${{ env.IMAGE_NAME }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | if [ "${{ !github.event.act }}" == "true" ]; then devbox run -- gorelease release --clean else devbox run -- gorelease build --clean --snapshot fi
with this .actevent.json
.actevent.json
{ "act": true }
and this command
act push \ --platform ubuntu-22.04=catthehacker/ubuntu:full-latest \ --eventpath .actevent.json \ --workflows .github/workflows/release.yml \ --job Build
i get this output:
act push --platform ubuntu-22.04=catthehacker/ubuntu:full-latest --eventpath .actevent.json --workflows .github/workflows/release.yml --job Build [ReleaseManagement/Release] π Start image=catthehacker/ubuntu:full-latest INFO[0000] Parallel tasks (0) below minimum, setting to 1 [ReleaseManagement/Release] π³ docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=true INFO[0002] Parallel tasks (0) below minimum, setting to 1 [ReleaseManagement/Release] π³ docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [ReleaseManagement/Release] π³ docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [ReleaseManagement/Release] π³ docker exec cmd=[chown -R 1001:127 /mnt/Store/Projects/Mine/Github/bank-downloaders] user=0 workdir= [ReleaseManagement/Release] β git clone 'https://github.com/google-github-actions/release-please-action' # ref=v3 [ReleaseManagement/Release] β Run Main act interop [ReleaseManagement/Release] π³ docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/release] user= workdir= [ReleaseManagement/Release] β Success - Main act interop [ReleaseManagement/Release] β ::set-output:: version=snaphot [ReleaseManagement/Release] β ::set-output:: release_created=true [ReleaseManagement/Release] β ::set-output:: releases_created=true [ReleaseManagement/Release] β ::set-output:: tag_name=snapshot [ReleaseManagement/Release] Cleaning up container for job Release [ReleaseManagement/Release] π Job succeeded [ReleaseManagement/Build ] π Start image=catthehacker/ubuntu:full-latest INFO[0004] Parallel tasks (0) below minimum, setting to 1 [ReleaseManagement/Build ] π³ docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=true INFO[0006] Parallel tasks (0) below minimum, setting to 1 [ReleaseManagement/Build ] π³ docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [ReleaseManagement/Build ] π³ docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /mnt/Store/Projects/Mine/Github/bank-downloaders] user=0 workdir= [ReleaseManagement/Build ] β git clone 'https://github.com/jetpack-io/devbox-install-action' # ref=v0.7.0 [ReleaseManagement/Build ] β Run Pre setup jetpack devbox [ReleaseManagement/Build ] β git clone 'https://github.com/actions/cache' # ref=v3 [ReleaseManagement/Build ] β git clone 'https://github.com/actions/cache' # ref=v3 [ReleaseManagement/Build ] β git clone 'https://github.com/DeterminateSystems/nix-installer-action' # ref=v4 [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Pre Install nix [ReleaseManagement/Build ] β Success - Pre Install nix [ReleaseManagement/Build ] β git clone 'https://github.com/actions/cache' # ref=v3 [ReleaseManagement/Build ] β git clone 'https://github.com/actions/cache' # ref=v3 [ReleaseManagement/Build ] β Success - Pre setup jetpack devbox [ReleaseManagement/Build ] β Run Main actions/checkout@v3 [ReleaseManagement/Build ] π³ docker cp src=/mnt/Store/Projects/Mine/Github/bank-downloaders/. dst=/mnt/Store/Projects/Mine/Github/bank-downloaders [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /mnt/Store/Projects/Mine/Github/bank-downloaders] user=0 workdir= [ReleaseManagement/Build ] β Success - Main actions/checkout@v3 [ReleaseManagement/Build ] β Run Main setup jetpack devbox [ReleaseManagement/Build ] π³ docker cp src=/home/zenobius/.cache/act/jetpack-io-devbox-install-action@v0.7.0/ dst=/var/run/act/actions/jetpack-io-devbox-install-action@v0.7.0/ [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /var/run/act/actions/jetpack-io-devbox-install-action@v0.7.0/] user=0 workdir= [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Main Get devbox version [ReleaseManagement/Build ] π³ docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-0.sh] user= workdir= | Found devbox latest version 0.8.2. [ReleaseManagement/Build ] β Success - Main Get devbox version [ReleaseManagement/Build ] β ::set-env:: latest_version=0.8.2 [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Main Mount devbox cli cache [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] π³ docker cp src=/home/zenobius/.cache/act/actions-cache-restore@v3/ dst=/var/run/act/actions/actions-cache-restore@v3/ [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /var/run/act/actions/actions-cache-restore@v3/] user=0 workdir= [ReleaseManagement/Build ] π³ docker exec cmd=[node /var/run/act/actions/actions-cache-restore@v3/dist/restore-only/index.js] user= workdir= [ReleaseManagement/Build ] π¬ ::debug::Resolved Keys: [ReleaseManagement/Build ] π¬ ::debug::["Linux-devbox-cli-0.8.2"] [ReleaseManagement/Build ] π¬ ::debug::Checking zstd --quiet --version [ReleaseManagement/Build ] π¬ ::debug::1.5.5 [ReleaseManagement/Build ] π¬ ::debug::zstd version: 1.5.5 [ReleaseManagement/Build ] π¬ ::debug::Resource Url: http://192.168.86.43:38721/_apis/artifactcache/cache?keys=Linux-devbox-cli-0.8.2&version=10c3673137184e8fc98ee7019556b49e59a4412bda7618d1ecdeb71d8913cc9a [ReleaseManagement/Build ] β *** [ReleaseManagement/Build ] π¬ ::debug::Cache Result: [ReleaseManagement/Build ] π¬ ::debug::{"archiveLocation":"***","cacheKey":"linux-devbox-cli-0.8.2","result":"hit"} [ReleaseManagement/Build ] π¬ ::debug::Archive Path: /tmp/397c456e-f8f8-4241-aca7-c328ecdbbde2/cache.tzst [ReleaseManagement/Build ] π¬ ::debug::Use Azure SDK: false [ReleaseManagement/Build ] π¬ ::debug::Download concurrency: 8 [ReleaseManagement/Build ] π¬ ::debug::Request timeout (ms): 30000 [ReleaseManagement/Build ] π¬ ::debug::Cache segment download timeout mins env var: undefined [ReleaseManagement/Build ] π¬ ::debug::Segment download timeout (ms): 600000 [ReleaseManagement/Build ] π¬ ::debug::Lookup only: false | Cache Size: ~8 MB (8449799 B) | [command]/usr/bin/tar -xf /tmp/397c456e-f8f8-4241-aca7-c328ecdbbde2/cache.tzst -P -C /mnt/Store/Projects/Mine/Github/bank-downloaders --use-compress-program unzstd | Cache restored successfully | Cache restored from key: linux-devbox-cli-0.8.2 [ReleaseManagement/Build ] β Success - Main Mount devbox cli cache [ReleaseManagement/Build ] β ::set-output:: cache-primary-key=Linux-devbox-cli-0.8.2 [ReleaseManagement/Build ] β ::set-output:: cache-matched-key=linux-devbox-cli-0.8.2 [ReleaseManagement/Build ] β ::set-output:: cache-hit=true [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Main Configure nix access-tokens [ReleaseManagement/Build ] π³ docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-5.sh] user= workdir= [ReleaseManagement/Build ] β Success - Main Configure nix access-tokens [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Main Install nix [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] π³ docker cp src=/home/zenobius/.cache/act/DeterminateSystems-nix-installer-action@v4/ dst=/var/run/act/actions/DeterminateSystems-nix-installer-action@v4/ [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /var/run/act/actions/DeterminateSystems-nix-installer-action@v4/] user=0 workdir= [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Main Install Nix [ReleaseManagement/Build ] π³ docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-6-composite-0.sh] user= workdir= | Set NIX_INSTALLER_EXTRA_CONF=experimental-features = ca-derivations fetch-closure | trusted-users = root | Set NIX_INSTALLER_URL=https://install.determinate.systems/nix?ci=github | Set NIX_INSTALLER_LOGGER=pretty | Set NIX_INSTALLER_DIAGNOSTIC_ENDPOINT=https://install.determinate.systems/nix/diagnostic | Set NIX_INSTALLER_NO_CONFIRM=true | % Total % Received % Xferd Average Speed Time Time Time Current | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16008 100 16008 0 0 9717 0 0:00:01 0:00:01 --:--:-- 64032 | info: downloading installer https://install.determinate.systems/nix/tag/v0.14.0/nix-installer-x86_64-linux | `nix-installer` needs to run as `root`, attempting to escalate now via `sudo`... | Error: | 0: Planner error | 1: Error executing action | 2: Action `configure_init_service` errored | 3: Could not detect systemd; you may be able to get up and running without systemd with `nix-installer install linux --init none`. | See https://github.com/DeterminateSystems/nix-installer#without-systemd-linux-only for documentation on usage and drawbacks. | | Location: | src/cli/subcommand/install.rs:197 | | Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. | Run with RUST_BACKTRACE=full to include source snippets. | | Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Planner+error%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60configure_init_service%60+errored%0A+++3%3A+Could+not+detect+systemd%3B+you+may+be+able+to+get+up+and+running+without+systemd+with+%60nix-installer+install+linux+--init+none%60.%0A++++++See+https%3A%2F%2Fgithub.com%2FDeterminateSystems%2Fnix-installer%23without-systemd-linux-only+for+documentation+on+usage+and+drawbacks.%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.14.0%7C%0A%7C**os**%7Clinux%7C%0A%7C**arch**%7Cx86_64%7C%0A [ReleaseManagement/Build ] β Failure - Main Install Nix [ReleaseManagement/Build ] exitcode '1': failure [ReleaseManagement/Build ] β Failure - Main Install nix [ReleaseManagement/Build ] exitcode '1': failure [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] π³ docker exec cmd=[node /var/run/act/workflow/hashfiles/index.js] user= workdir= [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] π³ docker exec cmd=[node /var/run/act/workflow/hashfiles/index.js] user= workdir= [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Failure - Main setup jetpack devbox [ReleaseManagement/Build ] exitcode '1': failure [ReleaseManagement/Build ] β Run Post setup jetpack devbox [ReleaseManagement/Build ] π³ docker cp src=/home/zenobius/.cache/act/jetpack-io-devbox-install-action@v0.7.0/ dst=/var/run/act/actions/jetpack-io-devbox-install-action@v0.7.0/ [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /var/run/act/actions/jetpack-io-devbox-install-action@v0.7.0/] user=0 workdir= [ReleaseManagement/Build ] 'runs-on' key not defined in ReleaseManagement/Build [ReleaseManagement/Build ] β Run Post Install nix [ReleaseManagement/Build ] π³ docker cp src=/home/zenobius/.cache/act/DeterminateSystems-nix-installer-action@v4/ dst=/var/run/act/actions/DeterminateSystems-nix-installer-action@v4/ [ReleaseManagement/Build ] π³ docker exec cmd=[chown -R 1001:127 /var/run/act/actions/DeterminateSystems-nix-installer-action@v4/] user=0 workdir= [ReleaseManagement/Build ] β Success - Post Install nix [ReleaseManagement/Build ] β Success - Post setup jetpack devbox [ReleaseManagement/Build ] π Job failed Error: Job 'Build' failed
This is not an issue with image. Containers do not contain nor cannot run systemd.
with the following workflow:
with this
.actevent.json
and this command
i get this output: