mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-10-09 16:03:26 +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:
|
||||
release:
|
||||
types: [ published ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: docker.io
|
||||
@@ -29,6 +30,12 @@ jobs:
|
||||
- name: Checkout repository
|
||||
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
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -41,22 +48,34 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
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
|
||||
|
||||
- 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
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.${{ matrix.type }}
|
||||
platforms: ${{ env.platforms }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
tags: |
|
||||
${{ steps.tagging.outputs.tags }}
|
||||
${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Version output
|
||||
|
Reference in New Issue
Block a user