mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-10-10 16:53:33 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e003d8fe5b | ||
|
852f5c298a | ||
|
13fc448a23 | ||
|
cf9bd3939c |
26
.github/workflows/generate-release.yml
vendored
26
.github/workflows/generate-release.yml
vendored
@@ -48,15 +48,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
{{ if eq ${{matrix.type}} "external" }}latest{{ end }}
|
|
||||||
{{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{version}}{{ end }}
|
|
||||||
type=semver,pattern={{version}}-${{ matrix.type }}
|
|
||||||
{{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{major}}.{{minor}}{{ end }}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}-${{ matrix.type }}
|
|
||||||
{{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{major}}{{ end }}
|
|
||||||
type=semver,pattern={{major}}-${{ matrix.type }}
|
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: tagging
|
||||||
|
uses: HackerHappyHour/tagging-strategy@v3
|
||||||
|
with:
|
||||||
|
image_name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tag_name: ${{ github.event.release.tag_name }}
|
||||||
|
tags: |
|
||||||
|
%X%-${{ matrix.type}}
|
||||||
|
%X.Y%-${{ matrix.type}}
|
||||||
|
%X.Y.Z%-${{ matrix.type}}
|
||||||
|
extra_tags: |
|
||||||
|
latest::${{ matrix.type == 'external'}}
|
||||||
|
%X%::${{ matrix.type == 'external'}}
|
||||||
|
%X.Y%::${{ matrix.type == 'external'}}
|
||||||
|
%X.Y.Z%::${{ matrix.type == 'external'}}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -65,7 +73,9 @@ jobs:
|
|||||||
file: Dockerfile.${{ matrix.type }}
|
file: Dockerfile.${{ matrix.type }}
|
||||||
platforms: ${{ env.platforms }}
|
platforms: ${{ env.platforms }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: |
|
||||||
|
${{ steps.tagging.outputs.tags }}
|
||||||
|
${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Version output
|
- name: Version output
|
||||||
|
Reference in New Issue
Block a user