diff options
author | 2023-05-21 13:15:06 +0100 | |
---|---|---|
committer | 2023-05-24 11:36:10 +0100 | |
commit | d6447a1811427bebc0492de07af57b8c33f2daee (patch) | |
tree | 64251c6f41f3edb69a4793c0a7b2d8b1bc93cdf0 | |
parent | use main ref as predicate (diff) |
Drop IS_MAIN_REF
-rw-r--r-- | .github/workflows/build-deploy.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 8d1e77f54..f38686426 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -1,9 +1,5 @@ name: Build & Deploy -env: - # Used to determine whether we should push & deploy the docker image. - IS_MAIN_REF: ${{ github.ref == 'refs/heads/main'}} - on: workflow_call: inputs: @@ -48,7 +44,7 @@ jobs: with: context: . file: ./Dockerfile - push: $IS_MAIN_REF + push: ${{ github.ref == 'refs/heads/main' }} cache-from: type=registry,ref=ghcr.io/python-discord/bot:latest cache-to: type=inline tags: | @@ -61,7 +57,7 @@ jobs: name: Deploy needs: build runs-on: ubuntu-latest - if: $IS_MAIN_REF + if: ${{ github.ref == 'refs/heads/main' }} environment: production steps: - name: Checkout Kubernetes repository |