aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-deploy.yml8
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