devcontainers / devcontainers/ci

devcontainer ci image cache is never working

Open
#302 2 comments 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
496
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.