Skip to content
Merged
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
66 changes: 66 additions & 0 deletions .github/workflows/build-container-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build Container Images

on:
workflow_dispatch:
inputs:
service_config:
description: 'Service configuration'
required: true
default: 'ncn-keeper'
type: choice
options:
- ncn-keeper

env:
REGISTRY: ghcr.io

jobs:
build-container:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Determine Docker target and image name
id: config
run: |
case "${{ github.event.inputs.service_config }}" in
"ncn-keeper")
echo "target=jito-tip-router-ncn-keeper" >> $GITHUB_OUTPUT
echo "service=jito-tip-router-ncn-keeper" >> $GITHUB_OUTPUT
echo "image_name=${{ github.repository }}/jito-tip-router-ncn-keeper" >> $GITHUB_OUTPUT
;;
esac

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ steps.config.outputs.image_name }}
tags: |
type=raw,value={{sha}}
type=raw,value=latest

- name: Build and push container
uses: docker/build-push-action@v5
with:
context: .
file: ./cli/Dockerfile
target: ${{ steps.config.outputs.target }}
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ To see more info on the Tip Router CLI check out the [CLI documentation](./cli/R

---

## 📖 Documentation

The comprehensive documentation for Tip Router has moved to [jito.network/docs/tiprouter](https://jito.network/docs/tiprouter). The source files are maintained in the [Jito Omnidocs repository](https://github.com/jito-foundation/jito-omnidocs/tree/master/tiprouter).

## Deploy and Upgrade

- build .so file: `cargo-build-sbf`
Expand Down
Loading