Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devcontainer ci image cache is never working #302

Open
crimsonvspurple opened this issue Nov 13, 2024 · 0 comments
Open

devcontainer ci image cache is never working #302

crimsonvspurple opened this issue Nov 13, 2024 · 0 comments

Comments

@crimsonvspurple
Copy link

In dc github action I have

      - name: Dev Container Build and Run Action
        uses: devcontainers/[email protected]
        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/[email protected]
        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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant