Skip to content

Commit

Permalink
flatten ci
Browse files Browse the repository at this point in the history
  • Loading branch information
blockloop committed Apr 15, 2024
1 parent f74bd67 commit cd50fb0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
if: github.event_name == 'pull_request'
run: make build-all
env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
if: github.event_name != 'pull_request'
run: make publish-all
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
make build-all
else
make publish-all
fi
env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository }}

0 comments on commit cd50fb0

Please sign in to comment.