| type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} | type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} | ||||
| type=ref,event=branch | type=ref,event=branch | ||||
| type=sha,enable=true,priority=100,prefix=,suffix=,format=long | type=sha,enable=true,priority=100,prefix=,suffix=,format=long | ||||
| type=semver,pattern={{major}}.{{minor}}.{{patch}} | |||||
| type=semver,pattern={{major}}.{{minor}} | |||||
| type=semver,pattern={{major}} | |||||
| type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }} | |||||
| - name: Build and push | - name: Build and push | ||||
| uses: docker/build-push-action@v4 | uses: docker/build-push-action@v4 |
| type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} | type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} | ||||
| type=ref,event=branch | type=ref,event=branch | ||||
| type=sha,enable=true,priority=100,prefix=,suffix=,format=long | type=sha,enable=true,priority=100,prefix=,suffix=,format=long | ||||
| type=semver,pattern={{major}}.{{minor}}.{{patch}} | |||||
| type=semver,pattern={{major}}.{{minor}} | |||||
| type=semver,pattern={{major}} | |||||
| type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }} | |||||
| - name: Build and push | - name: Build and push | ||||
| uses: docker/build-push-action@v4 | uses: docker/build-push-action@v4 |
| services: | services: | ||||
| # API service | # API service | ||||
| api: | api: | ||||
| image: langgenius/dify-api:0.3.31 | |||||
| image: langgenius/dify-api:0.3.31-fix1 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Startup mode, 'api' starts the API server. | # Startup mode, 'api' starts the API server. | ||||
| # worker service | # worker service | ||||
| # The Celery worker for processing the queue. | # The Celery worker for processing the queue. | ||||
| worker: | worker: | ||||
| image: langgenius/dify-api:0.3.31 | |||||
| image: langgenius/dify-api:0.3.31-fix1 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Startup mode, 'worker' starts the Celery worker for processing the queue. | # Startup mode, 'worker' starts the Celery worker for processing the queue. | ||||
| # Frontend web application. | # Frontend web application. | ||||
| web: | web: | ||||
| image: langgenius/dify-web:0.3.31 | |||||
| image: langgenius/dify-web:0.3.31-fix1 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| EDITION: SELF_HOSTED | EDITION: SELF_HOSTED |