mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-26 11:09:21 +00:00
chore: update action
This commit is contained in:
parent
e003d8fe5b
commit
d82055f3f3
24
.github/workflows/generate-release.yml
vendored
24
.github/workflows/generate-release.yml
vendored
@ -9,6 +9,7 @@ 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:
|
||||||
@ -48,24 +49,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
|
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
|
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
|
||||||
with:
|
with:
|
||||||
@ -73,9 +61,7 @@ jobs:
|
|||||||
file: Dockerfile.${{ matrix.type }}
|
file: Dockerfile.${{ matrix.type }}
|
||||||
platforms: ${{ env.platforms }}
|
platforms: ${{ env.platforms }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.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
|
||||||
|
Loading…
Reference in New Issue
Block a user