Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: akash docker #6

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .env.example.dockercompose
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
OPENAI_API_KEY=sk-
AKASH_MNEMONIC=
AKASH_WALLET_ADDRESS=
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.4.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23"
cache: "pnpm"
@@ -39,7 +39,7 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage reports to Codecov
# uses: meta-introspector/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -31,10 +31,10 @@ jobs:
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: meta-introspector/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
@@ -50,6 +50,6 @@ jobs:
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: meta-introspector/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
166 changes: 83 additions & 83 deletions .github/workflows/generate-readme-translations.yml
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
name: Generate Readme Translations
on:
push:
branches:
- "1222--README-ci-auto-translation"
# name: Generate Readme Translations
# on:
# push:
# branches:
# - "1222--README-ci-auto-translation"

jobs:
translation:
runs-on: ubuntu-latest
strategy:
matrix:
language:
[
{ code: "CN", name: "Chinese" },
{ code: "DE", name: "German" },
{ code: "ES", name: "Spanish" },
{ code: "FR", name: "French" },
{ code: "HE", name: "Hebrew" },
{ code: "IT", name: "Italian" },
{ code: "JA", name: "Japanese" },
{ code: "KOR", name: "Korean" },
{ code: "PTBR", name: "Portuguese (Brazil)" },
{ code: "RU", name: "Russian" },
{ code: "TH", name: "Thai" },
{ code: "TR", name: "Turkish" },
{ code: "VI", name: "Vietnamese" },
]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GH_TOKEN }}
# jobs:
# translation:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# language:
# [
# { code: "CN", name: "Chinese" },
# { code: "DE", name: "German" },
# { code: "ES", name: "Spanish" },
# { code: "FR", name: "French" },
# { code: "HE", name: "Hebrew" },
# { code: "IT", name: "Italian" },
# { code: "JA", name: "Japanese" },
# { code: "KOR", name: "Korean" },
# { code: "PTBR", name: "Portuguese (Brazil)" },
# { code: "RU", name: "Russian" },
# { code: "TH", name: "Thai" },
# { code: "TR", name: "Turkish" },
# { code: "VI", name: "Vietnamese" },
# ]
# permissions:
# contents: write
# steps:
# - uses: meta-introspector/checkout@v4
# with:
# ref: main
# token: ${{ secrets.GH_TOKEN }}

- name: Translate to ${{ matrix.language.name }}
uses: 0xjord4n/[email protected]
id: aixion
with:
config: >
{
"provider": "openai",
"provider_options": {
"api_key": "${{ secrets.OPENAI_API_KEY }}"
},
"messages": [
{
"role": "system",
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
},
{
"role": "user",
"content_path": "README.md"
}
],
"save_path": "README_${{ matrix.language.code }}.md",
"model": "gpt-4o"
}
# - name: Translate to ${{ matrix.language.name }}
# uses: 0xjord4n/[email protected]
# id: aixion
# with:
# config: >
# {
# "provider": "openai",
# "provider_options": {
# "api_key": "${{ secrets.OPENAI_API_KEY }}"
# },
# "messages": [
# {
# "role": "system",
# "content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
# },
# {
# "role": "user",
# "content_path": "README.md"
# }
# ],
# "save_path": "README_${{ matrix.language.code }}.md",
# "model": "gpt-4o"
# }

# Upload each translated file as an artifact
- name: Upload translation
uses: actions/upload-artifact@v4
with:
name: readme-${{ matrix.language.code }}
path: README_${{ matrix.language.code }}.md
# # Upload each translated file as an artifact
# - name: Upload translation
# uses: meta-introspector/upload-artifact@v4
# with:
# name: readme-${{ matrix.language.code }}
# path: README_${{ matrix.language.code }}.md

commit:
needs: translation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GH_TOKEN }}
# commit:
# needs: translation
# runs-on: ubuntu-latest
# steps:
# - uses: meta-introspector/checkout@v4
# with:
# ref: main
# token: ${{ secrets.GH_TOKEN }}

# Download all translation artifacts
- name: Download all translations
uses: actions/download-artifact@v4
with:
pattern: readme-*
merge-multiple: true
# # Download all translation artifacts
# - name: Download all translations
# uses: meta-introspector/download-artifact@v4
# with:
# pattern: readme-*
# merge-multiple: true

- name: Commit all translations
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update all README translations"
branch: main
file_pattern: "README_*.md"
commit_author: "GitHub Action <[email protected]>"
# - name: Commit all translations
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: "chore: update all README translations"
# branch: main
# file_pattern: "README_*.md"
# commit_author: "GitHub Action <[email protected]>"
17 changes: 1 addition & 16 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello @${{ github.actor }}! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!"
pr-message: "Hi @${{ github.actor }}! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!"
# no op
32 changes: 25 additions & 7 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -3,9 +3,12 @@ name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [created]
#release:
# types: [created]
workflow_dispatch:
push:
pull_request:
#branch:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
@@ -24,27 +27,35 @@ jobs:
id-token: write
#
steps:

# first we login
- name: Login to Docker Hub
uses: meta-introspector/login-action@v3
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: meta-introspector/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: meta-introspector/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
uses: meta-introspector/build-push-action@v5.0.0
with:
context: .
push: true
@@ -53,7 +64,7 @@ jobs:

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
uses: meta-introspector/attest-build-provenance@local
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
@@ -68,3 +79,10 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'


- name: Build and push Docker images
uses: meta-introspector/[email protected]
with:
push: true
tags: h4ckermike/elizaos-eliza:akash
6 changes: 3 additions & 3 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"
6 changes: 3 additions & 3 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
@@ -48,17 +48,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: meta-introspector/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: meta-introspector/action-setup@v2
with:
version: 8
run_install: false
8 changes: 4 additions & 4 deletions .github/workflows/pnpm-lockfile-check.yml
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@ jobs:
check-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: 23.3.0

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

@@ -30,7 +30,7 @@ jobs:

- name: Comment on PR
if: failure() && steps.lockfile-check.outputs.failed == 'true'
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
github.rest.issues.createComment({
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: meta-introspector/checkout@v3

- name: Validate PR title
id: validate
Loading