Skip to content

Commit

Permalink
chore: add ki
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Sep 15, 2024
1 parent 1245093 commit ed40228
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
# TODO: make it dynamic
- axone
- chihuahua
- govgen
- juno
- ki
- nolus
- govgen
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
cache: true
cache-dependency-path: "**/build.yml"
cache-dependency-path: "**/build.yaml"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -35,16 +35,18 @@ jobs:
with:
path: |
go-build-cache
go-mod-cache
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/build.yaml') }}
restore-keys: |
${{ runner.os }}-go-build-cache
- name: inject go-build-cache into docker
- name: inject go-cache into docker
uses: reproducible-containers/[email protected]
with:
cache-map: |
{
"go-build-cache": "/root/.cache/go-build"
"go-build-cache": "/root/.cache/go-build",
"go-mod-cache": "/go/pkg/mod"
}
- name: Login to GitHub Container Registry
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:
# in that case, build a different image

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
if: "steps.image_exists.outcome == 'failure'"
with:
file: "./Dockerfile"
Expand Down
7 changes: 7 additions & 0 deletions ki/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: "5.0.2"
go_version: "1.22-alpine3.18"
chain_repository: "https://github.com/KiFoundation/ki-tools"

daemon_name: "kid"
daemon_home: "$HOME/.kid"

0 comments on commit ed40228

Please sign in to comment.