Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
e9ed266
circleci config setup
4p00rv Nov 4, 2019
786709b
invalidate circleci cache
4p00rv Nov 4, 2019
2869bd1
revert bundle install
4p00rv Nov 4, 2019
37aca81
try ruby image
4p00rv Nov 4, 2019
ed6e637
jekyll build fixes
4p00rv Nov 4, 2019
50784f7
fix cache issue
4p00rv Nov 4, 2019
5367af4
rm .travis.yml
4p00rv Nov 4, 2019
f8511aa
exclude files from jekyll build
4p00rv Nov 4, 2019
33bcaa5
enable k8s deployment
4p00rv Nov 4, 2019
97f92fc
change image tag to commit hash
4p00rv Nov 4, 2019
90f4e48
Merge pull request #1944 from 4p00rv/master
arun-deriv Nov 5, 2019
ad092de
update post utm
Nov 25, 2019
9ff1a09
Merge remote-tracking branch 'upstream/master'
Nov 25, 2019
58af88b
Merge pull request #1945 from sash-binary/master
Nov 25, 2019
2ef3f3c
remove ID lang
Dec 5, 2019
314a1e5
Merge pull request #1947 from sash-binary/master
Dec 5, 2019
c46b04c
add: added artifact compress+upload and checksum uploading steps in k…
shudarshon-deriv Feb 5, 2020
35272f5
edit: edited pipeline to retrieve secrets from context rather from pr…
shudarshon-deriv Feb 5, 2020
6b6495d
edit: edited circle ci pipeline to work with context variables
shudarshon-deriv Feb 5, 2020
b651aac
edit: edited context name and enabled docker image + k8s deploy steps
shudarshon-deriv Feb 6, 2020
c34425b
edit: tagged artifact by commit id instead of sha256 checksum
shudarshon-deriv Feb 7, 2020
5bbb6ca
edit: changed context name to test scenario
shudarshon-deriv Feb 7, 2020
8ae6bd9
edit: reverted back context name
shudarshon-deriv Feb 7, 2020
6a1de7c
add alexa verification
Feb 21, 2020
7bb94e4
Merge pull request #1949 from sash-binary/master
Feb 21, 2020
8cf74a4
Merge pull request #1948 from shudarshon-binary/master
4p00rv Feb 25, 2020
b47496a
update gitignore
Mar 2, 2020
87eadb7
update galochkin page
Mar 2, 2020
0de09fa
update images
Mar 2, 2020
72bb788
Merge remote-tracking branch 'upstream/master'
Mar 2, 2020
10a380e
Merge pull request #1950 from sash-binary/master
Mar 2, 2020
6f0017a
Add docker image to release with latest tag
Mar 13, 2020
19a523f
Merge pull request #1951 from afshinpaydar-binary/Add_latest_tag_to_d…
4p00rv Mar 20, 2020
f46b217
Multi cluster release (#1952)
gokula-krishna-dev Mar 27, 2020
d0f239d
remove videos
Apr 30, 2020
285a099
Merge remote-tracking branch 'upstream/master'
Apr 30, 2020
08077b3
Merge pull request #1953 from sash-binary/master
Apr 30, 2020
1168d44
remove youtube footer icon
Apr 30, 2020
ef453d1
Merge pull request #1954 from sash-binary/master
Apr 30, 2020
0cdb719
update 404
May 1, 2020
da15191
Merge pull request #1955 from sash-binary/master
May 1, 2020
f36a549
cleanup dead links
May 11, 2020
a11dfa3
Merge pull request #1956 from sash-binary/master
May 11, 2020
f35d301
update footer
Jun 12, 2020
c476c7e
Merge pull request #1958 from sash-binary/master
Jun 12, 2020
8649da7
Update release process
gokula-krishna-dev Jun 15, 2020
9612fc5
update social
Jun 15, 2020
82cabc0
Merge pull request #1959 from sash-binary/master
Jun 15, 2020
fbed13f
Update release process
gokula-krishna-dev Jun 15, 2020
0933cbe
Update release process
gokula-krishna-dev Jun 15, 2020
536e202
Update release process
gokula-krishna-dev Jun 15, 2020
d061ca3
Update release process
gokula-krishna-dev Jun 15, 2020
1bd12c6
Install npm
gokula-krishna-dev Jun 15, 2020
fac7059
update dir
gokula-krishna-dev Jun 15, 2020
d3ee280
Update keys
gokula-krishna-dev Jun 16, 2020
1d8a8b9
Fix spacing
gokula-krishna-dev Jun 16, 2020
75c2f79
Update
gokula-krishna-dev Jun 16, 2020
1374920
Update key
gokula-krishna-dev Jun 16, 2020
1c7c466
Remove sudo
gokula-krishna-dev Jun 16, 2020
45164f3
Update global installation method
gokula-krishna-dev Jun 16, 2020
b48b826
Update command
gokula-krishna-dev Jun 16, 2020
54e351e
Update command
gokula-krishna-dev Jun 16, 2020
017b9e7
Add staging
gokula-krishna-dev Jun 17, 2020
cde56d0
Update deploy key fingerprint
gokula-krishna-dev Jun 17, 2020
4edae28
Merge pull request #1960 from gokula-krishna-dev/master
Jun 29, 2020
0731140
add slack intgration
Mahboobeh-binary Jun 29, 2020
25968b1
Merge pull request #1 from binary-com/master
Mahboobeh-binary Jun 29, 2020
4080a0c
Merge pull request #2 from Mahboobeh-binary/new-release-proc
Mahboobeh-binary Jun 29, 2020
3ebeaef
add slack intgration
Mahboobeh-binary Jun 29, 2020
5615241
Merge pull request #3 from Mahboobeh-binary/new-release-proc
Mahboobeh-binary Jun 29, 2020
a9b2f91
clean up CI config
Mahboobeh-binary Jun 30, 2020
640fe66
merge conflict
Mahboobeh-binary Jun 30, 2020
84d27e9
update user key
Mahboobeh-binary Jun 30, 2020
de07b61
trigger ci
Mahboobeh-binary Jun 30, 2020
7fb3d61
add build job to ci
Mahboobeh-binary Jun 30, 2020
0a8e0dd
trigger ci
Mahboobeh-binary Jun 30, 2020
6ecb722
Merge pull request #1961 from Mahboobeh-binary/add-slack-notification
Jun 30, 2020
565bad6
app to -> com
oskar-binary Jul 10, 2020
73bdc6c
Merge pull request #1962 from oskar-binary/update_deriv_links
ashkanx Jul 16, 2020
5edb7de
remove footer
ridhomard Feb 4, 2021
b4eb3aa
Merge pull request #1963 from ridho-binary/ridho/removefooter
Feb 4, 2021
b60ea52
Remove old release and use Blue/Green as default
Jun 14, 2021
5308209
Merge pull request #1964 from afshinpaydar-binary/afshin/Add_Blue_Green
mustofa-binary Jun 30, 2021
a995409
yashim/fix: update telegram link (#1966)
yashim-deriv Aug 16, 2022
34cbecf
yashim/fix: get public key using ssh-keyscan (#1967)
yashim-deriv Aug 16, 2022
89f444d
yashim/fix: add sudp apt-get update (#1968)
yashim-deriv Aug 16, 2022
e9bb0f5
yashim/chore: update config.yml (#1969)
yashim-deriv Aug 16, 2022
d0013ee
yashim/chore: update config.yml (#1970)
yashim-deriv Aug 16, 2022
f081564
yashim/feat: upgrade (#1971)
yashim-deriv Aug 16, 2022
8c17dcc
yashim/chore: revert apt changes (#1972)
yashim-deriv Aug 16, 2022
3b0cb54
Edit: rewrite circleci config (#1973)
shudarshon-deriv Aug 16, 2022
3720d00
chaks/fix_docker_tag (#1974)
shudarshon-deriv Aug 16, 2022
56e0d54
Deprecation notice (#1975)
thibault-deriv Mar 1, 2023
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
167 changes: 167 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
version: 2.1
orbs:
k8s: circleci/[email protected]
slack: circleci/[email protected]
commands:
git_checkout_from_cache:
description: "Git checkout and save cache"
steps:
- restore_cache:
name: Git restore cache
keys:
- source-v2-{{ .Branch }}-{{ .Revision }}
- source-v2-{{ .Branch }}-
- source-v2-
- run:
name: Fetch git tags
command: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
# Fetch tags if git cache is present
if [ -e /home/circleci/project/.git ]
then
git fetch origin --tags
fi
- checkout
- run:
name: Compress git objects
command: git gc
- save_cache:
name: Git save cache
key: source-v2-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
bundle_install:
description: "Bundle install"
steps:
- restore_cache:
name: Bundle modules cache restore
keys:
- bundle-v1-{{ checksum "Gemfile" }}
- bundle-v1-
- run:
name: Bundle install
command: |
bundle install --path ./modules
- save_cache:
name: Bundle modules cache save
key: bundle-v1-{{ checksum "Gemfile" }}
paths:
- "modules"
build:
description: "Build Jekyll site"
steps:
- restore_cache:
name: "Build cache restore"
keys:
- _site-v1-{{ .Revision }}
- _site-v1-
- run:
name: Building Jekyll site
command: bundle exec jekyll build --incremental
- save_cache:
name: Build cache save
key: _site-v1-{{ .Revision }}
paths:
- _site
docker_build_push:
description: "Build Docker image"
parameters:
docker_image_latest_tag:
type: string
default: "latest-staging"
steps:
- setup_remote_docker
- run:
name: Building docker image
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-academy:${TAG} -t ${DOCKHUB_ORGANISATION}/binary-static-academy:<< parameters.docker_image_latest_tag >> .
- run:
name: Pushing Image to docker hub
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
docker push ${DOCKHUB_ORGANISATION}/binary-static-academy:${TAG}
docker push ${DOCKHUB_ORGANISATION}/binary-static-academy:<< parameters.docker_image_latest_tag >>
k8s_deploy:
description: "Deploy to k8s cluster"
parameters:
k8s_version:
type: string
default: ${CIRCLE_SHA1}
k8s_namespace:
type: string
default: "academy-binary-com-staging"
steps:
- k8s/install-kubectl
- run:
name: Deploying to k8s cluster for service binary-academy
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
export NAMESPACE=<< parameters.k8s_namespace >>
git clone https://github.com/binary-com/devops-ci-scripts
cd devops-ci-scripts/k8s-build_tools
echo $CA_CRT | base64 --decode > ca.crt
./release.sh binary-static-academy << parameters.k8s_version >> ${TAG}
notify_slack:
description: "Notify slack"
steps:
- slack/status:
include_project_field: false
failure_message: "Release failed for Academy with version *$(cat _site/version)*"
success_message: "Release succeeded for Academy with version *$(cat _site/version)*"
webhook: ${SLACK_WEBHOOK}
jobs:
build:
docker:
- image: circleci/ruby:2.6.5
steps:
- git_checkout_from_cache
- bundle_install
- build
release_staging:
docker:
- image: circleci/ruby:2.6.5
steps:
- git_checkout_from_cache
- bundle_install
- build
- docker_build_push
#- k8s_deploy # devops will add staging k8s manifests
- notify_slack
release_production:
docker:
- image: circleci/ruby:2.6.5
steps:
- git_checkout_from_cache
- bundle_install
- build
- docker_build_push:
docker_image_latest_tag: "latest"
- k8s_deploy:
k8s_namespace: "academy-binary-com-production"
- notify_slack
workflows:
build:
jobs:
- build:
filters:
branches:
ignore: /^master$/
tags:
ignore: /.*/
release:
jobs:
- release_staging:
filters:
branches:
only: /^master$/
- release_production:
filters:
branches:
ignore: /.*/
tags:
only: /^production.*/
context: binary-frontend-artifact-upload

60 changes: 57 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# Project #
###################
node_modules
dist
upload
deploy.log
package-lock.json
Gemfile.lock

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Custom #
######################
*.sass-cache*
.cache/
.jekyll-cache/
_site
.sass-cache
/.idea
secrets.json
.jekyll-metadata
CNAME
Gemfile.lock
.ruby-version
.vscode/*
CNAME
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

101 changes: 0 additions & 101 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,107 +18,6 @@ <h2>The page you requested does not exist.</h2>
</div>
</div>
</div>
<div class="section">
<div class="container center-text">
<div class="row">
<div class="col">
<h2>Featured videos</h2>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="video-container">
<iframe src="//www.youtube.com/embed/mXuR_SRP-XI" allowfullscreen></iframe>
</div>
<a href="https://www.youtube.com/watch?v=mXuR_SRP-XI"><h3>Introduction to the MT5 trading platform</h3></a>
</div>
<div class="col-lg-4">
<div class="video-container">
<iframe src="//www.youtube.com/embed/ntu6pZRopq4" allowfullscreen></iframe>
</div>
<a href="https://www.youtube.com/watch?v=ntu6pZRopq4"><h3>How to choose and subscribe to a trading signal</h3></a>
</div>
<div class="col-lg-4">
<div class="video-container">
<iframe src="//www.youtube.com/embed/XVW_6X_uf8Q" allowfullscreen></iframe>
</div>
<a href="https://www.youtube.com/watch?v=XVW_6X_uf8Q"><h3>How to create a trading robot in the MQL5 Wizard</h3></a>
</div>
</div>
<div class="row">
<div class="col">
<p><a href="{{ '/en/videos/' | prepend: SourceUrl }}" class="button"><span>See all videos</span></a></p>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col center-text">
<h2>Recommended links</h2>
</div>
</div>
<div class="flex-row row">
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="{{ '/en/webinars/' | prepend: SourceUrl }}"><h3>Webinars</h3></a>
<p class="flex-text">Binary.com in collaboration with professional traders provides free training sessions for both beginners and advanced traders.</p>
<p><a href="{{ '/en/webinars/' | prepend: SourceUrl }}" class="button"><span>Read more</span></a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="https://shop.binary.com/"><h3>Binary.com Shop</h3></a>
<p class="flex-text">Grab apps, strategies, guides, gear, and more from Binary.com and other third-party sellers.</p>
<p><a href="https://shop.binary.com/" class="button"><span>Visit Shop</span></a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="{{ '/en/binary-tv/' | prepend: SourceUrl }}"><h3>Binary TV</h3></a>
<p class="flex-text text-muted">Firm believer of fundamental analysis? Keep up with headline news and trends from around the world.</p>
<p><a href="{{ '/en/binary-tv/' | prepend: SourceUrl }}" class="button"><span>Read more</span></a></p>
</div>
</div>
</div>
</div>
<div class="flex-row row">
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="{{ '/en/downloads/' | prepend: SourceUrl }}"><h3>E-Books</h3></a>
<p class="flex-text">Check out our whole range of e-books and download your free trading guide to get started right away!</p>
<p><a href="{{ '/en/downloads/' | prepend: SourceUrl }}" class="button"><span>Read more</span></a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="{{ '/en/daily-report/' | prepend: SourceUrl }}"><h3>Daily Report</h3></a>
<p class="flex-text text-muted">Stay up-to-date with the latest financial news and trends from around the world, with Daily Market Reports written by professional trader, Dave Evans.</p>
<p><a href="{{ '/en/daily-report/' | prepend: SourceUrl }}" class="button"><span>Read more</span></a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card thumbnail bottom-30">
<div class="caption">
<a href="{{ '/en/mellon-on-the-markets/' | prepend: SourceUrl }}"><h3>Mellon on the Markets</h3></a>
<p class="flex-text">Read through Jim Mellon's analysis of the global markets and learn how to determine whether you should or should not trade headline news driven events. Completely free of charge!</p>
<p><a href="{{ '/en/mellon-on-the-markets/' | prepend: SourceUrl }}" class="button"><span>Read more</span></a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:alpine
COPY ./_site /usr/share/nginx/html
COPY ./academy.com.conf /etc/nginx/conf.d/default.conf
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
source "https://rubygems.org"
ruby '2.5.0'

gem "jekyll", "3.8.4"
gem "jekyll", "4.0.0"

group :jekyll_plugins do
gem "jekyll-feed", "~> 0.9.2"
gem "jekyll-feed"
end
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
## Binary Academy

[![Build Status](https://travis-ci.org/binary-com/academy.svg?branch=gh-pages)](https://travis-ci.org/binary-com/academy)
# Binary Academy
## :warning: Deprecation notice
This repository is deprecated, it was used for [academy.binary.com](https://academy.binary.com) that is now deleted (end of 2022).

## README
- Always add language to the permalink ( like this -> permalink: /en/some-text-for-prmalink }



Why is this important?
Blog is always listening url and looking for language value (/en/) in order to show correct language on the page for all elements (header, footer, sidebar..)

Expand Down
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ future: true
markdown: kramdown
exclude:
- Gemfile
- Gemfile.lock
- Gemfile.lock
- modules
- Dockerfile
- academy.com.conf
Loading