mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-10-10 16:53:33 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d82055f3f3 | ||
|
e003d8fe5b | ||
|
852f5c298a | ||
|
13fc448a23 | ||
|
cf9bd3939c | ||
|
ca1a5cb56e | ||
|
615320a4df | ||
|
afddca5742 |
19
.github/workflows/generate-release.yml
vendored
19
.github/workflows/generate-release.yml
vendored
@@ -3,11 +3,13 @@ name: generate-release
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
DEFAULT_TYPE: "external"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
@@ -29,6 +31,12 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -41,16 +49,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}},enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
|
||||||
type=semver,pattern={{version}}-${{ matrix.type }}
|
type=semver,pattern={{version}}-${{ matrix.type }},priority=500
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=raw,value=latest,enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
|
||||||
type=semver,pattern={{major}}.{{minor}}-${{ matrix.type }}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
type=semver,pattern={{major}}-${{ matrix.type }}
|
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile.${{ matrix.type }}
|
file: Dockerfile.${{ matrix.type }}
|
||||||
|
Reference in New Issue
Block a user