Skip to content

Commit

Permalink
branch builds use cache, PRs don't
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Sep 29, 2022
1 parent 41deefe commit 1bc97fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/next_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: pull latest next_release tag
run: |
set -e
docker pull ghcr.io/azulinho/cryptobot:next_release || true
- name: Push to GitHub Packages
uses: docker/build-push-action@v2
with:
tags: ghcr.io/azulinho/cryptobot:next_release
push: true
no-cache: true
no-cache: false

8 changes: 1 addition & 7 deletions .github/workflows/pr_docker_compose_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
run: |
set -e
pip install docker-compose
docker pull ${IMAGE}:${TAG} || true
docker-compose build
docker-compose build --no-cache
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand All @@ -27,11 +26,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: push PR image
run: |
set -e
docker push ${IMAGE}:${TAG} || true
- name: run backtesting strategies BuyMoonSellRecoveryStrategy.yaml
run: |
set -e
Expand Down

0 comments on commit 1bc97fe

Please sign in to comment.