Skip to content

devcontainer ci image cache is never working #302

Description

@crimsonvspurple

In dc github action I have

 - name: Dev Container Build and Run Action
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/${{ github.repository_owner }}/devcontainers
imageTag: latest
runCmd: |
mvn --version
whoami
ls -lash /home/vscode
echo "Dev Container can start up! Let's push!"

this builds and pushes the DC.

In deploy github action I have:

 - name: Dev Container Build and Run Action
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/${{ github.repository_owner }}/devcontainers
cacheFrom: ghcr.io/${{ github.repository_owner }}/devcontainers
# platform: linux/amd64,linux/arm64
push: never
runCmd: |
whoami
ls -lash /home/vscode/
< then a lot more things>

This always rebuilds the container instead of loading it from cache.

What am I doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions