Skip to content

Commit

Permalink
ci: replace with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 17, 2024
1 parent ada7fb8 commit 5a5286d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/detect-new-ver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -70,4 +70,4 @@ jobs:
git push --set-upstream origin "$branch"
gh pr create --base develop --fill
sed "s/###IB_GATEWAY_VER###/10.19.2l/g;s/###IBC_VER###/3.18.0/g" README.template > README.update
4 changes: 2 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions README.template
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a5286d

Please sign in to comment.