Skip to content

Commit

Permalink
ci(core): fix docker cache (#1313)
Browse files Browse the repository at this point in the history
**Motivation**
Docker publish job is failing

**Description**
- Remove cache when publishing docker image
- Move scripts to `.github/scripts` folder to keep the root tight
  • Loading branch information
mpaulucci authored Nov 27, 2024
1 parent 8dc5d3f commit 284b6ee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Publish docker image to Github Packages
name: Publish Docker

on:
push:
branches: ["main"]
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hive_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/loc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 284b6ee

Please sign in to comment.