From 284b6eefccfe6f637d5e59c0a68a98b6382a7978 Mon Sep 17 00:00:00 2001 From: Martin Paulucci Date: Wed, 27 Nov 2024 18:27:22 +0100 Subject: [PATCH] ci(core): fix docker cache (#1313) **Motivation** Docker publish job is failing **Description** - Remove cache when publishing docker image - Move scripts to `.github/scripts` folder to keep the root tight --- publish.sh => .github/scripts/publish.sh | 0 publish_loc.sh => .github/scripts/publish_loc.sh | 0 .github/workflows/docker_publish.yaml | 6 +++--- .github/workflows/hive_coverage.yaml | 2 +- .github/workflows/loc.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) rename publish.sh => .github/scripts/publish.sh (100%) rename publish_loc.sh => .github/scripts/publish_loc.sh (100%) diff --git a/publish.sh b/.github/scripts/publish.sh similarity index 100% rename from publish.sh rename to .github/scripts/publish.sh diff --git a/publish_loc.sh b/.github/scripts/publish_loc.sh similarity index 100% rename from publish_loc.sh rename to .github/scripts/publish_loc.sh diff --git a/.github/workflows/docker_publish.yaml b/.github/workflows/docker_publish.yaml index ef87d0136..3427bc0ba 100644 --- a/.github/workflows/docker_publish.yaml +++ b/.github/workflows/docker_publish.yaml @@ -1,8 +1,9 @@ -name: Publish docker image to Github Packages +name: Publish Docker on: push: branches: ["main"] + workflow_dispatch: env: REGISTRY: ghcr.io @@ -10,6 +11,7 @@ env: jobs: build-and-push-image: + name: Build and push Docker image runs-on: ubuntu-latest # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. @@ -45,8 +47,6 @@ jobs: context: . push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - cache-from: type=gha - cache-to: type=gha,mode=max - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 diff --git a/.github/workflows/hive_coverage.yaml b/.github/workflows/hive_coverage.yaml index 0e92d85d6..3ed33b45e 100644 --- a/.github/workflows/hive_coverage.yaml +++ b/.github/workflows/hive_coverage.yaml @@ -60,4 +60,4 @@ jobs: - name: Post results to levm slack channel env: url: ${{ secrets.LEVM_SLACK_WEBHOOK }} - run: sh publish.sh + run: sh .github/scripts/publish.sh diff --git a/.github/workflows/loc.yaml b/.github/workflows/loc.yaml index 11f303776..3c0b50633 100644 --- a/.github/workflows/loc.yaml +++ b/.github/workflows/loc.yaml @@ -37,14 +37,14 @@ jobs: - name: Post results to ethrex L1 slack channel env: url: ${{ secrets.ETHREX_L1_SLACK_WEBHOOK }} - run: sh publish_loc.sh + run: sh .github/scripts/publish_loc.sh - name: Post results to ethrex L2 slack channel env: url: ${{ secrets.ETHREX_L2_SLACK_WEBHOOK }} - run: sh publish_loc.sh + run: sh .github/scripts/publish_loc.sh - name: Post results to levm slack channel env: url: ${{ secrets.LEVM_SLACK_WEBHOOK }} - run: sh publish_loc.sh + run: sh .github/scripts/publish_loc.sh