浏览代码

use a separate container repo for earthly caches

Andy Li 3 年之前
父节点
当前提交
4ce32e1eac
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      .github/workflows/main.yml
  2. 3 3
      extra/github-actions/workflows/main.yml

+ 3 - 3
.github/workflows/main.yml

@@ -254,7 +254,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-build-${{github.ref_name}}-amd64 +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:build-${{github.ref_name}}-amd64 +build --ADD_REVISION=$ADD_REVISION
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
 
@@ -274,7 +274,7 @@ jobs:
           path: out/linux/amd64
 
       - name: Test
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-test-${{github.ref_name}}-amd64 +test-all --GITHUB_ACTIONS="$GITHUB_ACTIONS"
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:test-${{github.ref_name}}-amd64 +test-all --GITHUB_ACTIONS="$GITHUB_ACTIONS"
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
 
@@ -310,7 +310,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-build-${{github.ref_name}}-arm64 +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:build-${{github.ref_name}}-arm64 +build --ADD_REVISION=$ADD_REVISION
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
 

+ 3 - 3
extra/github-actions/workflows/main.yml

@@ -77,7 +77,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-build-${{github.ref_name}}-amd64 +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:build-${{github.ref_name}}-amd64 +build --ADD_REVISION=$ADD_REVISION
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
 
@@ -97,7 +97,7 @@ jobs:
           path: out/linux/amd64
 
       - name: Test
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-test-${{github.ref_name}}-amd64 +test-all --GITHUB_ACTIONS="$GITHUB_ACTIONS"
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:test-${{github.ref_name}}-amd64 +test-all --GITHUB_ACTIONS="$GITHUB_ACTIONS"
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
 
@@ -133,7 +133,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-build-${{github.ref_name}}-arm64 +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')_cache:build-${{github.ref_name}}-arm64 +build --ADD_REVISION=$ADD_REVISION
         env:
           EARTHLY_PUSH: "${{ github.event_name == 'push' }}"