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