diff options
author | 2023-05-24 12:37:11 +0200 | |
---|---|---|
committer | 2023-05-24 12:37:11 +0200 | |
commit | dd73d892d0d84fb21c88f41f22ecd74ec43355c9 (patch) | |
tree | 64251c6f41f3edb69a4793c0a7b2d8b1bc93cdf0 | |
parent | Bump sentry-sdk from 1.22.2 to 1.24.0 (#2608) (diff) | |
parent | Drop IS_MAIN_REF (diff) |
Merge pull request #2603 from python-discord/build-docker-image-in-ci
Build docker image in CI
-rw-r--r-- | .github/workflows/build-deploy.yml | 3 | ||||
-rw-r--r-- | .github/workflows/main.yml | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 2582a4113..f38686426 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -44,7 +44,7 @@ jobs: with: context: . file: ./Dockerfile - push: true + push: ${{ github.ref == 'refs/heads/main' }} cache-from: type=registry,ref=ghcr.io/python-discord/bot:latest cache-to: type=inline tags: | @@ -57,6 +57,7 @@ jobs: name: Deploy needs: build runs-on: ubuntu-latest + if: ${{ github.ref == 'refs/heads/main' }} environment: production steps: - name: Checkout Kubernetes repository diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f972b16f..a512f289d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,6 @@ jobs: build-deploy: - if: github.ref == 'refs/heads/main' uses: ./.github/workflows/build-deploy.yml needs: - lint-test |