mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-10-09 16:03:26 +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:
|
||||
release:
|
||||
types: [ published ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: docker.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
DEFAULT_TYPE: "external"
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
@@ -29,6 +31,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,16 +49,13 @@ 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=semver,pattern={{version}},enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
|
||||
type=semver,pattern={{version}}-${{ matrix.type }},priority=500
|
||||
type=raw,value=latest,enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.${{ matrix.type }}
|
||||
|
Reference in New Issue
Block a user