chore(l1): reduce unnecessary docker builds and remove duplicate workflow executions in main #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image | |
on: | |
merge_group: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ["**"] | |
paths-ignore: | |
- "README.md" | |
- "LICENSE" | |
- "**/README.md" | |
- "**/docs/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
RUST_VERSION: 1.80.1 | |
jobs: | |
build-and-upload: | |
name: Build and Upload image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
load: true | |
tags: ethereum_rust | |
outputs: type=docker,dest=/tmp/ethereum_rust_image.tar | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ethereum_rust_image | |
path: /tmp/ethereum_rust_image.tar |