Skip to content

Commit

Permalink
Split Hive CI to docker and hive test workflows (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
okkothejawa authored Mar 25, 2024
1 parent 2661f64 commit 11d8d55
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 25 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker_hive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Makes a Docker build to be used in Hive tests.

name: Docker for Hive

on:
workflow_dispatch:
schedule:
# every day
- cron: "13 21 * * *" # 21:13 UTC

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# Except in `nightly` and `stable` branches! Any cancelled job will cause the
# CI run to fail, and we want to keep a clean history for major branches.
cancel-in-progress: ${{ (github.ref != 'refs/heads/nightly') && (github.ref != 'refs/heads/stable') }}

jobs:
docker:
timeout-minutes: 60
name: Build and publish Docker image
runs-on: ubicloud-standard-16
steps:
- uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: ./hive/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/citrea:latest
30 changes: 5 additions & 25 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Runs `ethereum/hive` tests.

name: hive
name: Hive

on:
workflow_dispatch:
schedule:
# every day
- cron: "13 21 * * *" # 21:13 UTC
workflow_run:
workflows: ["Docker for Hive"]
types:
- completed

env:
CARGO_TERM_COLOR: always
Expand All @@ -18,27 +19,6 @@ concurrency:
cancel-in-progress: ${{ (github.ref != 'refs/heads/nightly') && (github.ref != 'refs/heads/stable') }}

jobs:
docker:
timeout-minutes: 60
name: Build and publish Docker image
runs-on: ubicloud-standard-16
steps:
- uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: ./hive/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/citrea:latest

prepare:
timeout-minutes: 45
runs-on: ubicloud-standard-4
Expand Down

0 comments on commit 11d8d55

Please sign in to comment.