Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/antigravity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Antigravity Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-antigravity
Expand All @@ -27,15 +28,28 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
file: dockerfiles/AntigravityDockerfile
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
build-args: |
BASE_IMAGE=ghcr.io/ucb-bar/chia:${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/cacti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Cacti Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-cacti
Expand Down Expand Up @@ -48,6 +49,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
Expand All @@ -59,9 +72,10 @@ jobs:
# org PAT already used to clone private repos in the other nightlies.
secrets: |
github_cacti_token=${{ secrets.UCB_CHIA_CI }}
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
build-args: |
BASE_IMAGE=ghcr.io/ucb-bar/chia:${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/champsim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: ChampSim Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-champsim
Expand Down Expand Up @@ -45,16 +46,29 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
file: dockerfiles/ChampSimDockerfile
context: .
target: champsim-base
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
CHIA_REVISION=${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/chia-circt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ name: CIRCT Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-circt
Expand All @@ -33,6 +34,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
Expand All @@ -42,9 +55,10 @@ jobs:
# build-chia-circt-base.yml should propagate to the next build.
pull: true
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
CHIA_REVISION=${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/chia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Chia Image

on:
workflow_dispatch:
# Release builds come through release-images.yml, which orders this ahead of
# the images that derive from it; a tag trigger here would race them.
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia
Expand Down Expand Up @@ -48,15 +51,28 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
file: dockerfiles/ChiaDockerfile
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
CHIA_REVISION=${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/chipyard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Chipyard Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-chisel-build
Expand Down Expand Up @@ -51,14 +52,27 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
file: dockerfiles/ChipyardDockerfile
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
build-args: |
BASE_IMAGE=ghcr.io/ucb-bar/chia:${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
no-cache: true
# cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
# cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/claude-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: ClaudeCode Image

on:
workflow_dispatch:
workflow_call:

env:
IMAGE: ghcr.io/ucb-bar/chia-claude-code
Expand All @@ -27,6 +28,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=raw,value=build-${{ github.run_id }}
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
Expand All @@ -35,9 +48,10 @@ jobs:
GIT_AUTH_TOKEN=${{ secrets.UCB_CHIA_CI }}
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:build-${{ github.run_id }}
build-args: |
BASE_IMAGE=ghcr.io/ucb-bar/chia:${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/esp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: ESP Image

on:
workflow_dispatch:
workflow_call:
push:
branches: [esp]

Expand Down Expand Up @@ -51,14 +52,27 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# On a tag push this adds the tag verbatim (v1.2.3), so every image
# carries the same version string as the released chialoops.
- name: Image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=latest
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v6
with:
file: dockerfiles/EspDockerfile
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
tags: ${{ steps.meta.outputs.tags }}
build-args: |
CHIA_REVISION=${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
no-cache: true

- name: Show runner resources
Expand Down
Loading