From 60f6061ba84fae60c2314b3de65541c8ca45ae24 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 16:57:16 -0400 Subject: [PATCH 01/37] Add arm64 building potentially. --- .github/workflows/main.yml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aad7bfa7..f05877ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,20 +55,26 @@ jobs: echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio - - name: Build Image - run: | - docker build -t $IMAGE_NAME . + - name: Use QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master - name: Log In to Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + run: echo "${{ secrets.TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - name: Push Image - run: | - echo IMAGE_ID=$IMAGE_ID - echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION - # Always tag latest when pushing a tag, as we don't expect to ever merge old tags - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest - docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + - name: Build and push the docker image + uses: docker/build-push-action@master + with: + context: . + builder: ${{ steps.buildx.outputs.name }} + platforms: linux/arm64,linux/amd64 + push: true + tags: ghcr.io/kokomo/5etools-img:latest + #labels: ${{ steps.meta.outputs.labels }} + # endregion From e4085c323f9de581852bc4a5a4979d240ae9d147 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:01:04 -0400 Subject: [PATCH 02/37] Fix it up --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f05877ba..54b7a260 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: uses: docker/setup-buildx-action@master - name: Log In to Registry - run: echo "${{ secrets.TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build and push the docker image uses: docker/build-push-action@master From 5ec8e31615b65edab34d80ecc9810b412e595913 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:05:17 -0400 Subject: [PATCH 03/37] Fix username --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54b7a260..c76c40ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,7 +74,7 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: ghcr.io/kokomo/5etools-img:latest + tags: ghcr.io/kokomo123/5etools-img:latest #labels: ${{ steps.meta.outputs.labels }} # endregion From 340945a77d842116b3a810e44a668582e3f85e17 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:18:32 -0400 Subject: [PATCH 04/37] See if this works.. --- .github/workflows/main.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c76c40ce..2883225c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,14 +67,19 @@ jobs: - name: Log In to Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - name: Build and push the docker image - uses: docker/build-push-action@master - with: - context: . - builder: ${{ steps.buildx.outputs.name }} - platforms: linux/arm64,linux/amd64 - push: true - tags: ghcr.io/kokomo123/5etools-img:latest - #labels: ${{ steps.meta.outputs.labels }} + - name: Build the docker image + run: | + docker build -t $IMAGE_NAME + + - name: Push image + run: | + echo IMAGE_ID=$IMAGE_ID + echo IMAGE_VERSION=$IMAGE_VERSION + docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION + # Always tag latest when pushing a tag, as we don't expect to ever merge old tags + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + docker push $IMAGE_ID:$IMAGE_VERSION + docker push $IMAGE_ID:latest + # endregion From 39c09955046f56cfd18492ad0b11ecfe8bfc6475 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:22:53 -0400 Subject: [PATCH 05/37] Forgot the dot... --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2883225c..67b094ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: - name: Build the docker image run: | - docker build -t $IMAGE_NAME + docker build -t $IMAGE_NAME . - name: Push image run: | From 4638c1af7ab8a69e4a224665e1d5a3feea87050a Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:26:54 -0400 Subject: [PATCH 06/37] Push platforms flag and see if that works.. --- .github/workflows/main.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67b094ed..0c564dcd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,21 +55,13 @@ jobs: echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio - - name: Use QEMU - uses: docker/setup-qemu-action@master - with: - platforms: all - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@master - name: Log In to Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build the docker image run: | - docker build -t $IMAGE_NAME . + docker build --platforms linux/amd64,linux/arm64 -t $IMAGE_NAME . - name: Push image run: | From b3ba187884cf461793e950244bb305d35bda99f5 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:29:53 -0400 Subject: [PATCH 07/37] Buildx please work --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c564dcd..785bd36c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,14 +54,17 @@ jobs: echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV - # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio + # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master - name: Log In to Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build the docker image run: | - docker build --platforms linux/amd64,linux/arm64 -t $IMAGE_NAME . + docker build --platforms linux/amd64,linux/arm64 -t $IMAGE_NAME - name: Push image run: | From 9ae408de25e9fe69d230365058641addac824790 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:32:50 -0400 Subject: [PATCH 08/37] Typo --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 785bd36c..129b23e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,7 +64,7 @@ jobs: - name: Build the docker image run: | - docker build --platforms linux/amd64,linux/arm64 -t $IMAGE_NAME + docker build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME - name: Push image run: | From 5048871058143743e750f8d6c146bf08b2cb9b5b Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:37:42 -0400 Subject: [PATCH 09/37] Placing platform afterwards.. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 129b23e1..453b98c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,7 +64,7 @@ jobs: - name: Build the docker image run: | - docker build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME + docker build -t $IMAGE_NAME --platform linux/amd64,linux/arm64 - name: Push image run: | From 18d17209b2c903e83938d023faa7b6d6e4a261fb Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 17:44:02 -0400 Subject: [PATCH 10/37] Before the t? --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 453b98c7..d8e6aa8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,7 +64,7 @@ jobs: - name: Build the docker image run: | - docker build -t $IMAGE_NAME --platform linux/amd64,linux/arm64 + docker build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME - name: Push image run: | From a970a6294a67257bcc3138b707c14095eabd8971 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 18:02:30 -0400 Subject: [PATCH 11/37] Fixing up for last time, with proper commands.. --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8e6aa8f..9f9142a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,12 @@ jobs: echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV - # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio + # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio + - name: Use QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@master @@ -63,8 +68,12 @@ jobs: run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build the docker image - run: | - docker build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME + uses: docker/build-push-action@master + with: + context: . + builder: ${{ steps.buildx.outputs.name }} + platforms: linux/arm64,linux/amd64 + push: false - name: Push image run: | From a12413fa5812ff3d3d9cdbb929ceeeda4c22c74a Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 18:19:41 -0400 Subject: [PATCH 12/37] Testing --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f9142a5..9edfd995 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,10 +80,8 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION - # Always tag latest when pushing a tag, as we don't expect to ever merge old tags - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + # endregion From 3af7d71726d73d14b054c9e9b426bf950193508a Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 18:25:49 -0400 Subject: [PATCH 13/37] Push final version? --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9edfd995..40cc6bcf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: run: | echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION + docker tag $IMAGE_ID:$IMAGE_VERSION docker push $IMAGE_ID:$IMAGE_VERSION From 713b56d4e22f52d3200bd4a6345c2082df6ad603 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 18:53:20 -0400 Subject: [PATCH 14/37] Final version of fixing the push command --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40cc6bcf..9edfd995 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: run: | echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_ID:$IMAGE_VERSION + docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION docker push $IMAGE_ID:$IMAGE_VERSION From 02d7c8c0ef02b72103fef4b8c503f840ab7ab970 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Thu, 22 Aug 2024 18:58:20 -0400 Subject: [PATCH 15/37] This should fix it --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9edfd995..6b52e9ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: run: | echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION + docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION docker push $IMAGE_ID:$IMAGE_VERSION From a70b87fd00245a4deada2516c5e2af3bc97fb9d7 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 15:50:22 -0400 Subject: [PATCH 16/37] Restore Line 73 from main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b52e9ed..8a06eb74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,6 +81,7 @@ jobs: echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION docker push $IMAGE_ID:$IMAGE_VERSION + docker push $IMAGE_ID:latest From d6415aef0b95ba79ef4156eee17cf0279dd81193 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 18:16:49 -0400 Subject: [PATCH 17/37] Put back the latest script --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a06eb74..7dbf35bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,6 +80,7 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest docker push $IMAGE_ID:$IMAGE_VERSION docker push $IMAGE_ID:latest From 5bccfe60b783b92dd582dc2eec5b30d69e90cf18 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 18:21:57 -0400 Subject: [PATCH 18/37] Experimental tagging --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7dbf35bc..b06ebf8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,9 +80,9 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:add-arm64-building docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + docker push $IMAGE_ID:add-arm64-building From 8f791c05f0bb9461d4f024f7e1e2c3e13e366af7 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 18:28:33 -0400 Subject: [PATCH 19/37] Experimenting with disabling setting the environment --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b06ebf8f..10c0e7ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,14 +45,14 @@ jobs: - uses: actions/checkout@master # See: https://stackoverflow.com/a/58178121 - - name: Set Env - run: | - IMAGE_VERSION=${{ github.ref_name }} - # Strip "v" prefix from tag name - [[ "${{ github.ref }}" == "refs/tags/"* ]] && IMAGE_VERSION=$(echo $IMAGE_VERSION | sed -e 's/^v//') - echo "IMAGE_VERSION=$IMAGE_VERSION" >> $GITHUB_ENV - - echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV + #- name: Set Env + # run: | + # IMAGE_VERSION=${{ github.ref_name }} + # # Strip "v" prefix from tag name + # [[ "${{ github.ref }}" == "refs/tags/"* ]] && IMAGE_VERSION=$(echo $IMAGE_VERSION | sed -e 's/^v//') + # echo "IMAGE_VERSION=$IMAGE_VERSION" >> $GITHUB_ENV + # + # echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio - name: Use QEMU From cc04a95682bc44429a32ac939b692bc633d03516 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 18:45:02 -0400 Subject: [PATCH 20/37] Add a potential metadata extraction? --- .github/workflows/main.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10c0e7ee..9706e0bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,20 +45,30 @@ jobs: - uses: actions/checkout@master # See: https://stackoverflow.com/a/58178121 - #- name: Set Env - # run: | - # IMAGE_VERSION=${{ github.ref_name }} - # # Strip "v" prefix from tag name - # [[ "${{ github.ref }}" == "refs/tags/"* ]] && IMAGE_VERSION=$(echo $IMAGE_VERSION | sed -e 's/^v//') - # echo "IMAGE_VERSION=$IMAGE_VERSION" >> $GITHUB_ENV - # - # echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV + - name: Set Env + run: | + IMAGE_VERSION=${{ github.ref_name }} + # Strip "v" prefix from tag name + [[ "${{ github.ref }}" == "refs/tags/"* ]] && IMAGE_VERSION=$(echo $IMAGE_VERSION | sed -e 's/^v//') + echo "IMAGE_VERSION=$IMAGE_VERSION" >> $GITHUB_ENV + + echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio - name: Use QEMU uses: docker/setup-qemu-action@master with: platforms: all + + - name: Testing metadata extraction + id: meta + uses: docker/metadata-action@master + with: + images: kokomo123/5etools-img + tags: | + add-arm64-building + type=edge + type=sha - name: Set up Docker Buildx id: buildx @@ -80,9 +90,9 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:add-arm64-building + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:add-arm64-building + docker push $IMAGE_ID:latest From 856cc070b8af1f93d52eb6df054c71126f95b676 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 18:45:46 -0400 Subject: [PATCH 21/37] Fixing some stuff. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9706e0bd..854f1ea0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,9 +90,9 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:add-arm64-building docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + docker push $IMAGE_ID:add-arm64-building From 5ebf0e2d133938d1fb0e26663ed6c45f43437d62 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 20:04:29 -0400 Subject: [PATCH 22/37] Changes and switching stuff around --- .github/workflows/main.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 854f1ea0..b1c6a419 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,16 +59,6 @@ jobs: uses: docker/setup-qemu-action@master with: platforms: all - - - name: Testing metadata extraction - id: meta - uses: docker/metadata-action@master - with: - images: kokomo123/5etools-img - tags: | - add-arm64-building - type=edge - type=sha - name: Set up Docker Buildx id: buildx @@ -83,16 +73,17 @@ jobs: context: . builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 - push: false + push: true + tags: kokomo123/5etools-img:latest - name: Push image run: | echo IMAGE_ID=$IMAGE_ID echo IMAGE_VERSION=$IMAGE_VERSION docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:add-arm64-building + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:add-arm64-building + docker push $IMAGE_ID:latest From 23c81ab305e1f3dd459abbd4022233c6f68d17ba Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 20:12:53 -0400 Subject: [PATCH 23/37] Pushing fixes to tags.. --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b1c6a419..05754e52 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,7 +74,9 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: kokomo123/5etools-img:latest + tags: + - kokomo123/5etools-img:latest + - kokomo123/5etools-img:testing - name: Push image run: | From 89a4cdc5a7caf695ee5ea51ff00d736312985abe Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 20:18:04 -0400 Subject: [PATCH 24/37] Fixing tags again.. --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05754e52..509f98e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,9 +74,7 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: - - kokomo123/5etools-img:latest - - kokomo123/5etools-img:testing + tags: kokomo123/5etools-img:latest,kokomo123/5etools-img:testing - name: Push image run: | From 828b2b245a3bc632770d666ea33fceb2cedde96b Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 20:27:24 -0400 Subject: [PATCH 25/37] Pushing it to ghcr instead of internally. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 509f98e3..6e02a929 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,7 +74,7 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: kokomo123/5etools-img:latest,kokomo123/5etools-img:testing + tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - name: Push image run: | From 38fa9634847d8a739dcad2c52cb16dc76d3f0ce4 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 20:33:57 -0400 Subject: [PATCH 26/37] Remove push image step --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6e02a929..fb2b1bc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,14 +76,14 @@ jobs: push: true tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - - name: Push image - run: | - echo IMAGE_ID=$IMAGE_ID - echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest - docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + #- name: Push image + # run: | + # echo IMAGE_ID=$IMAGE_ID + # echo IMAGE_VERSION=$IMAGE_VERSION + # docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION + # [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + # docker push $IMAGE_ID:$IMAGE_VERSION + # docker push $IMAGE_ID:latest From b8bd7d61e59f84f3a6f4872426d1a1bd4f6ddeb6 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 21:53:13 -0400 Subject: [PATCH 27/37] Disable release workflow temporarily. --- .github/workflows/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb2b1bc5..2d0c3d35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,27 +17,27 @@ concurrency: cancel-in-progress: true jobs: - create-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master + #create-release: + #runs-on: ubuntu-latest + #steps: + # - uses: actions/checkout@master - - name: Archive Images - run: | - rm -rf docker Dockerfile - mkdir -p img - ls | grep -v img | xargs mv -t img - zip -r -s 500m img-${{ github.ref_name }}.zip img/ + # - name: Archive Images + # run: | + # rm -rf docker Dockerfile + # mkdir -p img + # ls | grep -v img | xargs mv -t img + # zip -r -s 500m img-${{ github.ref_name }}.zip img/ - - name: Upload Release + # - name: Upload Release # Add the files one-by-one in an effort to avoid timeouts # Sleep between creating the release and adding files, as the release takes time to be created (?) - run: | - gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}" - sleep 10 - for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}" + # sleep 10 + # for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} create-image: runs-on: ubuntu-latest From d199155e782a6e2558af99fa752126cca5212c6e Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 21:59:28 -0400 Subject: [PATCH 28/37] disable pushing on building --- .github/workflows/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d0c3d35..cbae8307 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,17 +73,17 @@ jobs: context: . builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 - push: true + push: false tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - #- name: Push image - # run: | - # echo IMAGE_ID=$IMAGE_ID - # echo IMAGE_VERSION=$IMAGE_VERSION - # docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - # [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest - # docker push $IMAGE_ID:$IMAGE_VERSION - # docker push $IMAGE_ID:latest + - name: Push image + run: | + echo IMAGE_ID=$IMAGE_ID + echo IMAGE_VERSION=$IMAGE_VERSION + docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION + [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + docker push $IMAGE_ID:$IMAGE_VERSION + docker push $IMAGE_ID:latest From ad8f7bf9efe9c9e3562dfd70fb135e909a465033 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 22:05:10 -0400 Subject: [PATCH 29/37] Enable loading of the docker image --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cbae8307..5c3cf505 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,6 +75,7 @@ jobs: platforms: linux/arm64,linux/amd64 push: false tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing + load: true - name: Push image run: | From 8fe91b63605622371977dc6672e44e2729099109 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 22:21:14 -0400 Subject: [PATCH 30/37] Experimental purposes.. --- .github/workflows/main.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c3cf505..ec0677fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,6 +60,19 @@ jobs: with: platforms: all + - name: Free Disk Space (Ubuntu) + uses: insightsengineering/disk-space-reclaimer@v1 + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tools-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + docker-images: false + - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@master @@ -73,9 +86,8 @@ jobs: context: . builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 - push: false + push: true tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - load: true - name: Push image run: | From 46f6a43848474695906121bee784174f80777585 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 22:31:23 -0400 Subject: [PATCH 31/37] Get rid of extra step, finally. --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec0677fb..00b6b0ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,14 +89,14 @@ jobs: push: true tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - - name: Push image - run: | - echo IMAGE_ID=$IMAGE_ID - echo IMAGE_VERSION=$IMAGE_VERSION - docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest - docker push $IMAGE_ID:$IMAGE_VERSION - docker push $IMAGE_ID:latest + - #name: Push image + #run: | + # echo IMAGE_ID=$IMAGE_ID + # echo IMAGE_VERSION=$IMAGE_VERSION + # docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION + # [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest + # docker push $IMAGE_ID:$IMAGE_VERSION + # docker push $IMAGE_ID:latest From 8401ac724d9d9d691c39908465dbeaf0f5338098 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Sat, 24 Aug 2024 22:33:52 -0400 Subject: [PATCH 32/37] Remove testing tag, fix up stuff. --- .github/workflows/main.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00b6b0ec..a1b808e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,17 +87,5 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: ghcr.io/kokomo123/5etools-img:latest,ghcr.io/kokomo123/5etools-img:testing - - - #name: Push image - #run: | - # echo IMAGE_ID=$IMAGE_ID - # echo IMAGE_VERSION=$IMAGE_VERSION - # docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION - # [[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest - # docker push $IMAGE_ID:$IMAGE_VERSION - # docker push $IMAGE_ID:latest - - - + tags: ghcr.io/kokomo123/5etools-img:latest # endregion From fb1c9fedf1285882af5c583d0c7d9fa6310e6745 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Mon, 26 Aug 2024 08:26:04 -0400 Subject: [PATCH 33/37] Adjust free disk space positioning, adjust platforms for qemu, adjust tags --- .github/workflows/main.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1b808e0..e8c60afb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,6 +45,19 @@ jobs: - uses: actions/checkout@master # See: https://stackoverflow.com/a/58178121 + - name: Free Disk Space (Ubuntu) + uses: insightsengineering/disk-space-reclaimer@v1 + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tools-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + docker-images: false + - name: Set Env run: | IMAGE_VERSION=${{ github.ref_name }} @@ -58,20 +71,7 @@ jobs: - name: Use QEMU uses: docker/setup-qemu-action@master with: - platforms: all - - - name: Free Disk Space (Ubuntu) - uses: insightsengineering/disk-space-reclaimer@v1 - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tools-cache: true - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - docker-images: false + platforms: arm64,amd64 - name: Set up Docker Buildx id: buildx @@ -87,5 +87,5 @@ jobs: builder: ${{ steps.buildx.outputs.name }} platforms: linux/arm64,linux/amd64 push: true - tags: ghcr.io/kokomo123/5etools-img:latest + tags: ghcr.io/${{ github.repository_owner }}/5etools-img:latest # endregion From 2a7d6d46afaab1ad78800214ec2b16e434970e11 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Mon, 26 Aug 2024 08:27:39 -0400 Subject: [PATCH 34/37] Adjust positioning of with --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8c60afb..7fa5a7ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,14 +50,14 @@ jobs: with: # this might remove tools that are actually needed, # if set to "true" but frees about 6 GB - tools-cache: true - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - docker-images: false - + tools-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + docker-images: false + - name: Set Env run: | IMAGE_VERSION=${{ github.ref_name }} From 306c6703664669891c60e747ab6867d76462cdd3 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Mon, 26 Aug 2024 09:06:54 -0400 Subject: [PATCH 35/37] Comment out free disk space temporarily. --- .github/workflows/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7fa5a7ce..537380d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,18 +45,18 @@ jobs: - uses: actions/checkout@master # See: https://stackoverflow.com/a/58178121 - - name: Free Disk Space (Ubuntu) - uses: insightsengineering/disk-space-reclaimer@v1 - with: + #- name: Free Disk Space (Ubuntu) + #uses: insightsengineering/disk-space-reclaimer@v1 + #with: # this might remove tools that are actually needed, # if set to "true" but frees about 6 GB - tools-cache: true - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - docker-images: false + # tools-cache: true + # android: true + # dotnet: true + # haskell: true + # large-packages: true + # swap-storage: true + # docker-images: false - name: Set Env run: | From 57a5e1c8a00f307f73c79d4f4b19b7ba89eb31c7 Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Mon, 26 Aug 2024 09:58:49 -0400 Subject: [PATCH 36/37] Uncomments free disk space, add some comments, puts env comment back in its proper place. --- .github/workflows/main.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 537380d7..70bd4633 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,20 +44,19 @@ jobs: steps: - uses: actions/checkout@master + # Avoid the following error when building multiple large images: + # `System.IO.IOException: No space left on device : '/home/runner/runners/2.319.1/_diag/Worker_20240826-130726-utc.log'` + # See also: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories + - name: Free Disk Space (Ubuntu) + uses: insightsengineering/disk-space-reclaimer@v1 + with: + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + docker-images: false # See: https://stackoverflow.com/a/58178121 - #- name: Free Disk Space (Ubuntu) - #uses: insightsengineering/disk-space-reclaimer@v1 - #with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - # tools-cache: true - # android: true - # dotnet: true - # haskell: true - # large-packages: true - # swap-storage: true - # docker-images: false - - name: Set Env run: | IMAGE_VERSION=${{ github.ref_name }} From f564e07f710d822012c85e656388cc4c454275de Mon Sep 17 00:00:00 2001 From: Kokomo123 Date: Mon, 26 Aug 2024 16:28:17 -0400 Subject: [PATCH 37/37] Forgot to uncomment the create-release step, oops :P --- .github/workflows/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70bd4633..f80f049d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,27 +17,27 @@ concurrency: cancel-in-progress: true jobs: - #create-release: - #runs-on: ubuntu-latest - #steps: - # - uses: actions/checkout@master + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master - # - name: Archive Images - # run: | - # rm -rf docker Dockerfile - # mkdir -p img - # ls | grep -v img | xargs mv -t img - # zip -r -s 500m img-${{ github.ref_name }}.zip img/ + - name: Archive Images + run: | + rm -rf docker Dockerfile + mkdir -p img + ls | grep -v img | xargs mv -t img + zip -r -s 500m img-${{ github.ref_name }}.zip img/ - # - name: Upload Release + - name: Upload Release # Add the files one-by-one in an effort to avoid timeouts # Sleep between creating the release and adding files, as the release takes time to be created (?) - # run: | - # gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}" - # sleep 10 - # for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}" + sleep 10 + for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} create-image: runs-on: ubuntu-latest