Przeglądaj źródła

Lowercase repo name

Kevin Leung 3 lat temu
rodzic
commit
82b4997107
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      .github/workflows/main.yml

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

@@ -253,7 +253,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/${{ github.repository }}:cache --push +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache --push +build --ADD_REVISION=$ADD_REVISION
       
       - name: Upload artifact
         uses: actions/[email protected]
@@ -268,7 +268,7 @@ jobs:
         run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
       
       - name: Build xmldoc
-        run: earthly --remote-cache=ghcr.io/${{ github.repository }}:cache --push +xmldoc --COMMIT=$GITHUB_SHA --BRANCH=${{ steps.extract_branch.outputs.branch }}
+        run: earthly --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache --push +xmldoc --COMMIT=$GITHUB_SHA --BRANCH=${{ steps.extract_branch.outputs.branch }}
       
       - name: Upload xmldoc artifact
         uses: actions/[email protected]
@@ -309,7 +309,7 @@ jobs:
         run: echo "ADD_REVISION=1" >> $GITHUB_ENV
 
       - name: Build
-        run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/${{ github.repository }}:cache-arm64 --push +build --ADD_REVISION=$ADD_REVISION
+        run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-arm64 --push +build --ADD_REVISION=$ADD_REVISION
       
       - name: Upload artifact
         uses: actions/[email protected]
@@ -655,11 +655,11 @@ jobs:
       
       - name: Test
         if: success() && !(matrix.SAUCE && matrix.SAUCE_ACCESS_KEY)
-        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test-all
+        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache --push +test-all
       
       - name: Test (with SauceLabs)
         if: success() && matrix.SAUCE && matrix.SAUCE_ACCESS_KEY
-        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/${{ github.repository }}:cache --push +test --TEST=js
+        run: earthly --platform=linux/amd64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache --push +test --TEST=js
         env:
           SAUCE_ACCESS_KEY: matrix.SAUCE_ACCESS_KEY
       
@@ -694,11 +694,11 @@ jobs:
       
       # - name: Test
       #   if: success() && !(matrix.SAUCE && matrix.SAUCE_ACCESS_KEY)
-      #   run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/${{ github.repository }}:cache-arm64 --push +test-all
+      #   run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-arm64 --push +test-all
       
       # - name: Test (with SauceLabs)
       #   if: success() && matrix.SAUCE && matrix.SAUCE_ACCESS_KEY
-      #   run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/${{ github.repository }}:cache-arm64 --push +test --TEST=js
+      #   run: earthly --platform=linux/arm64 --remote-cache=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):cache-arm64 --push +test --TEST=js
       #   env:
       #     SAUCE_ACCESS_KEY: matrix.SAUCE_ACCESS_KEY