mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-10-11 01:33:27 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e003d8fe5b | ||
|
852f5c298a | ||
|
13fc448a23 | ||
|
cf9bd3939c | ||
|
ca1a5cb56e | ||
|
615320a4df | ||
|
afddca5742 |
35
.github/workflows/generate-release.yml
vendored
35
.github/workflows/generate-release.yml
vendored
@@ -3,6 +3,7 @@ name: generate-release
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
@@ -29,6 +30,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,22 +48,34 @@ 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}}-${{ matrix.type }}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}-${{ matrix.type }}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
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@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
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