Closed SquirrelDeveloper closed 1 month ago
Workflow run URL
No response
Do you have a link to the workflow that fails please?
Ok I think I found it: https://github.com/SquirrelCorporation/SquirrelServersManager/actions/runs/10244560732/job/28344395004#step:8:353
Looking at invoked command:
/usr/bin/docker buildx build --build-context shared-lib=./shared-lib --cache-from type=gha,scope=buildkit --cache-to type=gha,mode=max,scope=buildkit --label org.opencontainers.image.created=2024-08-05T10:06:57.580Z --label org.opencontainers.image.description=A user friendly, UI/UX focus server & configuration management tool --label org.opencontainers.image.licenses=AGPL-3.0 --label org.opencontainers.image.revision=3c2e9b6e81116e98654d31c929181332479902cc --label org.opencontainers.image.source=https://github.com/SquirrelCorporation/SquirrelServersManager --label org.opencontainers.image.title=SquirrelServersManager --label org.opencontainers.image.url=https://github.com/SquirrelCorporation/SquirrelServersManager --label org.opencontainers.image.version=v0.1.17-alpha.3 --output type=image,name=target,annotation-index.org.opencontainers.image.description=Squirrel Servers Manager (SSM) Client ghcr.io/squirrelcorporation/squirrelserversmanager-client:v0.1.17-alpha.3 --output ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest --platform linux/amd64,linux/arm64,linux/arm64/v8 --attest type=provenance,disabled=true --tag ghcr.io/squirrelcorporation/squirrelserversmanager-client:v0.1.17-alpha.3 --tag ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest --target production --metadata-file /home/server/actions-runner/_work/_temp/docker-actions-toolkit-tLwOOl/build-metadata-fad14fd127.json --push ./client
It seems to export both an image and to client directory:
--output type=image,name=target,annotation-index.org.opencontainers.image.description=Squirrel Servers Manager (SSM) Client ghcr.io/squirrelcorporation/squirrelserversmanager-client:v0.1.17-alpha.3
--output ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest
I think that's because you set the outputs
input wrong here:
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Squirrel Servers Manager (SSM) Proxy ${{ steps.meta.outputs.tags }}
You should put quotes for the annotation:
outputs: type=image,name=target,"annotation-index.org.opencontainers.image.description=Squirrel Servers Manager (SSM) Proxy ${{ steps.meta.outputs.tags }}"
Contributing guidelines
I've found a bug, and:
Description
My biggest (in term of size) project is stucked on the this action at
exporting to client directory
THe project is a dockerized React project with NPM. --> https://github.com/SquirrelCorporation/SquirrelServersManager/tree/master/client It is stuck on both my personal self-hosted server, and the default free ubuntu-latest runner. However, after trying with a bigger server, the error doesnt happen. I would very much like to make it work on the free server, as a single open source developer of my projectExpected behaviour
The docker image is correctly exported to the GHCR registry
Actual behaviour
Build is stuck to
exporting to client directory
Repository URL
https://github.com/SquirrelCorporation/SquirrelServersManager
Workflow run URL
No response
YAML workflow
Workflow logs
BuildKit logs
No response
Additional info
No response