Build macos - ...
This commit is contained in:
parent
d1729a624d
commit
a241c2af0d
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -8,6 +8,8 @@ on:
|
|||||||
- github_actions_2
|
- github_actions_2
|
||||||
tags:
|
tags:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * 4'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -15,7 +17,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-18.04 ]
|
os: [ ubuntu-18.04, macos-latest ]
|
||||||
python-version: [3.7]
|
python-version: [3.7]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -142,7 +144,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: [ build, build_windows ]
|
needs: [ build, build_windows ]
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
if: github.event_name == 'push' || github.event_name == 'cron'
|
if: github.event_name == 'push' || github.event_name == 'schedule'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
@ -157,8 +159,6 @@ jobs:
|
|||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
|
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
|
||||||
# original filter
|
|
||||||
# branch in (master, develop, feat/improve_travis) AND (type in (push, cron))
|
|
||||||
run: |
|
run: |
|
||||||
build_helpers/publish_docker.sh
|
build_helpers/publish_docker.sh
|
||||||
|
|
||||||
@ -170,6 +170,6 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
dockerfile: Dockerfile.pi
|
dockerfile: Dockerfile.pi
|
||||||
# cache: true
|
# cache: true
|
||||||
cache: ${{ github.event_name != 'cron' }}
|
cache: ${{ github.event_name != 'schedule' }}
|
||||||
tag_names: true
|
tag_names: true
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ echo "Running for ${TAG}"
|
|||||||
# Add commit and commit_message to docker container
|
# Add commit and commit_message to docker container
|
||||||
echo "${GITHUB_SHA}" > freqtrade_commit
|
echo "${GITHUB_SHA}" > freqtrade_commit
|
||||||
|
|
||||||
if [ "${GITHUB_EVENT_NAME}" = "cron" ]; then
|
if [ "${GITHUB_EVENT_NAME}" = "schedule" ]; then
|
||||||
echo "event ${GITHUB_EVENT_NAME}: full rebuild - skipping cache"
|
echo "event ${GITHUB_EVENT_NAME}: full rebuild - skipping cache"
|
||||||
docker build -t freqtrade:${TAG} .
|
docker build -t freqtrade:${TAG} .
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user