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

Added support for Docker #40

Merged
merged 16 commits into from
Nov 4, 2023
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Compiles (MQL4)
uses: fx31337/mql-compile-action@master
with:
path: MT4.mq4
verbose: true
# - name: Compiles (MQL4)
# uses: fx31337/mql-compile-action@master
# with:
# path: server/MQL4/wisefinance-socket-server.mq4
# verbose: true
- name: Compiles (MQL5)
uses: fx31337/mql-compile-action@master
with:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/metatrader5.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Push MetaTrader5 Release to Docker Hub

on:
push:
branches:
- main
release:
types:
- created
Expand All @@ -18,14 +15,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Check if MT5 folder has changed
- name: Check if MQL5 folder has changed
id: folder-changed
run: |
if git diff --quiet HEAD^ HEAD -- MT5/; then
echo "MT5 folder has not changed"
if git diff --quiet HEAD^ HEAD -- server/MQL5/; then
echo "MQL5 folder has not changed"
echo "FOLDER_CHANGED=false" >> $GITHUB_OUTPUT
else
echo "MT5 folder has changed"
echo "MQL5 folder has changed"
echo "FOLDER_CHANGED=true" >> $GITHUB_OUTPUT
fi

Expand All @@ -37,7 +34,7 @@ jobs:
DOCKER_REPO: metatrader
DOCKER_TAG: 5
run: |
docker build -t $DOCKER_REPO:$DOCKER_TAG -f MT5/Dockerfile.MetaTrader5 ./MT5
docker build -t $DOCKER_REPO:$DOCKER_TAG -f server/MQL5/Dockerfile.MetaTrader5 ./server/MQL5
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker tag $DOCKER_REPO:$DOCKER_TAG $DOCKER_USERNAME/$DOCKER_REPO:$DOCKER_TAG
docker push $DOCKER_USERNAME/$DOCKER_REPO:$DOCKER_TAG
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ samples
.\...config.json

.local.session.sql

resources/
38 changes: 0 additions & 38 deletions resources/MT4-Ticks-To-MT5/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

10 changes: 0 additions & 10 deletions resources/MT4-Ticks-To-MT5/.github/ISSUE_TEMPLATE/custom.md

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions resources/MT4-Ticks-To-MT5/.github/workflows/compile.yml

This file was deleted.

76 changes: 0 additions & 76 deletions resources/MT4-Ticks-To-MT5/CODE_OF_CONDUCT.md

This file was deleted.

1 change: 0 additions & 1 deletion resources/MT4-Ticks-To-MT5/CONTRIBUTING.md

This file was deleted.

Loading
Loading