Skip to content

Commit

Permalink
ci: fix Docker image build for production (#30562)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored and debdutdeb committed Oct 26, 2023
1 parent 7a94940 commit 1b4b8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:

steps:
- name: Login to GitHub Container Registry
if: github.event.pull_request.head.repo.full_name == github.repository
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand Down Expand Up @@ -63,7 +63,7 @@ runs:
docker compose -f docker-compose-ci.yml build "${args[@]}"
- name: Publish Docker images to GitHub Container Registry
if: github.event.pull_request.head.repo.full_name == github.repository
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
shell: bash
run: |
args=(rocketchat)
Expand Down

0 comments on commit 1b4b8d8

Please sign in to comment.