diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4edd357bf..28ff5fa8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/build_helpers/publish_docker.sh b/build_helpers/publish_docker.sh index e87047fb0..c536e8798 100755 --- a/build_helpers/publish_docker.sh +++ b/build_helpers/publish_docker.sh @@ -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