|
@@ -5,6 +5,9 @@ on:
|
|
|
branches:
|
|
|
- "main"
|
|
|
- "deploy/dev"
|
|
|
+ pull_request:
|
|
|
+ branches:
|
|
|
+ - "main"
|
|
|
release:
|
|
|
types: [published]
|
|
|
|
|
@@ -71,12 +74,14 @@ jobs:
|
|
|
run: docker build --build-arg PLATFORM=${{ matrix.scope }} --build-arg VERSION=${{ github.sha }} -t dify-plugin-daemon -f ./docker/${{ matrix.scope }}.dockerfile .
|
|
|
|
|
|
- name: Tag Docker Images
|
|
|
+ if: github.event_name != 'pull_request'
|
|
|
run:
|
|
|
for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
|
|
|
do
|
|
|
docker tag dify-plugin-daemon "$tag-${{ matrix.scope }}-${{ env.PLATFORM_PAIR }}";
|
|
|
done
|
|
|
- name: Push Docker Image
|
|
|
+ if: github.event_name != 'pull_request'
|
|
|
run:
|
|
|
for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
|
|
|
do
|
|
@@ -84,6 +89,7 @@ jobs:
|
|
|
done
|
|
|
|
|
|
create-manifest:
|
|
|
+ if: github.event_name != 'pull_request'
|
|
|
needs: build
|
|
|
runs-on: ubuntu-latest
|
|
|
strategy:
|