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
|
||||
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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user