Build macos - ...

This commit is contained in:
Matthias 2019-11-11 19:42:05 +01:00
parent d1729a624d
commit a241c2af0d
2 changed files with 6 additions and 6 deletions

View File

@ -8,6 +8,8 @@ on:
- github_actions_2
tags:
pull_request:
schedule:
- cron: '0 5 * * 4'
jobs:
build:
@ -15,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04 ]
os: [ ubuntu-18.04, macos-latest ]
python-version: [3.7]
steps:
@ -142,7 +144,7 @@ jobs:
deploy:
needs: [ build, build_windows ]
runs-on: ubuntu-18.04
if: github.event_name == 'push' || github.event_name == 'cron'
if: github.event_name == 'push' || github.event_name == 'schedule'
steps:
- uses: actions/checkout@v1
@ -157,8 +159,6 @@ jobs:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
# original filter
# branch in (master, develop, feat/improve_travis) AND (type in (push, cron))
run: |
build_helpers/publish_docker.sh
@ -170,6 +170,6 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile.pi
# cache: true
cache: ${{ github.event_name != 'cron' }}
cache: ${{ github.event_name != 'schedule' }}
tag_names: true

View File

@ -7,7 +7,7 @@ echo "Running for ${TAG}"
# Add commit and commit_message to docker container
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"
docker build -t freqtrade:${TAG} .
else