From 5a5286d9a6bf236ac3b0d50d7d9a3ca3ee5a0549 Mon Sep 17 00:00:00 2001 From: manhinhang Date: Wed, 17 Apr 2024 23:58:13 +0800 Subject: [PATCH] ci: replace with latest version --- .github/workflows/detect-new-ver.yml | 6 +++--- Dockerfile.template | 4 ++-- README.template | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/detect-new-ver.yml b/.github/workflows/detect-new-ver.yml index 05892b0..2fc33c7 100644 --- a/.github/workflows/detect-new-ver.yml +++ b/.github/workflows/detect-new-ver.yml @@ -44,8 +44,8 @@ jobs: - name: Update files with new version if: steps.check-update.outputs.has_update == 'true' run: | - cat README.template | envsubst > README.update - cat Dockerfile.template | envsubst > Dockerfile.update + sed 's/###IB_GATEWAY_VER###/${{steps.check-update.outputs.ib-gateway-ver}}/g;s/###IBC_VER###/${{steps.check-update.outputs.ibc-ver}}/g' README.template > README.update + sed 's/###IBC_VER###/${{steps.check-update.outputs.ibc-ver}}/g;s/###IBC_ASSET_URL###/${{steps.check-update.outputs.ibc-asset-url}}/g' Dockerfile.template > Dockerfile.update - name: Create PR if: ${{ steps.check-update.outputs.has_update == 'true' }} env: @@ -70,4 +70,4 @@ jobs: git push --set-upstream origin "$branch" gh pr create --base develop --fill - \ No newline at end of file +sed "s/###IB_GATEWAY_VER###/10.19.2l/g;s/###IBC_VER###/3.18.0/g" README.template > README.update \ No newline at end of file diff --git a/Dockerfile.template b/Dockerfile.template index 2537c9a..76423cb 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,7 +1,7 @@ FROM python:3.11-slim # IBC Version : https://github.com/IbcAlpha/IBC/releases -ARG IBC_VER="3.18.0" -ARG IBC_ASSET_URL="https://github.com/IbcAlpha/IBC/releases/download/$IBC_VER-Update.1/IBCLinux-$IBC_VER.zip" +ARG IBC_VER="###IBC_VER###" +ARG IBC_ASSET_URL="###IBC_ASSET_URL###" # install dependencies RUN apt-get update \ diff --git a/README.template b/README.template index 656ad9f..87d47d5 100644 --- a/README.template +++ b/README.template @@ -10,9 +10,9 @@ It's just pure `IB Gateway` and don't include any VNC service (for security reas This docker image just installed: -- [IB Gateway](https://www.interactivebrokers.com/en/index.php?f=16457) (${IB_GATEWAY_VER}) +- [IB Gateway](https://www.interactivebrokers.com/en/index.php?f=16457) (###IB_GATEWAY_VER###) -- [IBC](https://github.com/IbcAlpha/IBC) (${IBC_VER}) +- [IBC](https://github.com/IbcAlpha/IBC) (###IBC_VER###) ## Pull the Docker image from Docker Hub