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
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,12 @@ jobs:
if: ${{ matrix.python-version == '3.14' && github.event.head_commit.message == 'release' }}
run: make publish

deploy:
runs-on: ubuntu-latest
image:
if: github.ref == 'refs/heads/main'
needs:
- build
env:
PYTHON_ENV: ci
uses: ./.github/workflows/docker-multiarch.yml
with:
image-name: quantflow
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FMP_API_KEY: ${{ secrets.FMP_API_KEY }}

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: install rops
run: |
curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
echo "$HOME/bin" >> $GITHUB_PATH
76 changes: 76 additions & 0 deletions .github/workflows/docker-multiarch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Docker Multi-arch Build

on:
workflow_call:
inputs:
image-name:
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true

jobs:
build-amd64:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: install rops
run: |
curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
echo "$HOME/bin" >> $GITHUB_PATH
- name: build amd64
run: rops docker build ${{ inputs.image-name }}
- name: push amd64
run: rops docker push ${{ inputs.image-name }} --arch

build-arm64:
runs-on: ubuntu-24.04-arm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: install rops
run: |
curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
echo "$HOME/bin" >> $GITHUB_PATH
- name: build arm64
run: rops docker build ${{ inputs.image-name }}
- name: push arm64
run: rops docker push ${{ inputs.image-name }} --arch

manifest:
needs: [build-amd64, build-arm64]
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: install rops
run: |
curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
echo "$HOME/bin" >> $GITHUB_PATH
- name: create manifest
run: rops docker manifest ${{ inputs.image-name }}
2 changes: 1 addition & 1 deletion rops.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ default_branch = "main"

[docker]
image_branch_tag_prefix = "branch"
image_repo_url = "quantmind/quantflow"
image_repo_url = "ghcr.io/quantmind"
files_path = "dev"