Skip to content

Commit f758c3f

Browse files
authored
feat: use GitHub Action cache in container actions
This replaces the usage of the inline cache in the container actions. Fixes: #128 Signed-off-by: Jaremy Hatler <hatler.jaremy@gmail.com>
1 parent 59d510d commit f758c3f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
3-
"image": "ghcr.io/jhatler/janus-devcontainer:v0.1.4", /* x-release-please-version */
3+
"image": "ghcr.io/jhatler/janus-devcontainer:v0", /* x-release-please-version */
44
"remoteUser": "node",
55
"containerUser": "node",
66
"postCreateCommand": "docker pull ghcr.io/super-linter/super-linter:v6.5.1"

.github/actions/container/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ runs:
7676
DOCKER_BUILDKIT: 1
7777
BUILDKIT_INLINE_CACHE: 1
7878
with:
79-
cache-from: type=registry,ref=${{ inputs.repository }}
80-
cache-to: type=inline
79+
cache-from: type=gha
80+
cache-to: type=gha,mode=max
8181
context: ${{ inputs.context }}
8282
push: ${{ inputs.push }}
8383
tags: |

.github/actions/devcontainer/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ runs:
122122
run: |
123123
devcontainer build \
124124
--workspace-folder ${{ inputs.workspace }} \
125-
--cache-from ${{ inputs.repository }} \
126-
--cache-to type=inline \
125+
--cache-from type=gha \
126+
--cache-to type=gha,mode=max \
127127
--platform ${{ inputs.platforms }} \
128128
--image-name ${{ inputs.repository }}:${{ steps.git.outputs.short_sha }} \
129129
--output type=image,name=${{ inputs.repository }}:${{ steps.git.outputs.short_sha }},push=${{ inputs.push }}

devcontainers/janus/.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
3-
"image": "ghcr.io/jhatler/janus:v0.2.0-janusjsv01146gabcf339.46.abcf339", /* x-release-please-version */
3+
"image": "ghcr.io/jhatler/janus:v0", /* x-release-please-version */
44
"features": {
55
"ghcr.io/devcontainers/features/sshd:1": {
66
"version": "latest"

0 commit comments

Comments
 (0)