|
@@ -53,7 +53,6 @@ jobs:
|
|
|
run: |
|
|
|
platform=${{ matrix.platform }}
|
|
|
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
|
|
|
- echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
|
|
|
echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
@@ -77,7 +76,7 @@ jobs:
|
|
|
push: true
|
|
|
tags: |
|
|
|
${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-latest
|
|
|
- ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }}
|
|
|
+ ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }}
|
|
|
${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.BRANCH_NAME }}
|
|
|
cache-from: type=gha,scope=${{ matrix.service_name }}
|
|
|
cache-to: type=gha,mode=max,scope=${{ matrix.service_name }}
|
|
@@ -104,10 +103,10 @@ jobs:
|
|
|
${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-latest-linux-arm64
|
|
|
docker manifest push ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-latest
|
|
|
|
|
|
- docker manifest create ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }} \
|
|
|
- ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }}-linux-amd64 \
|
|
|
- ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }}-linux-arm64
|
|
|
- docker manifest push ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }}
|
|
|
+ docker manifest create ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }} \
|
|
|
+ ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }}-linux-amd64 \
|
|
|
+ ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }}-linux-arm64
|
|
|
+ docker manifest push ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }}
|
|
|
|
|
|
docker manifest create ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.BRANCH_NAME }} \
|
|
|
${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.BRANCH_NAME }}-linux-amd64 \
|
|
@@ -117,5 +116,5 @@ jobs:
|
|
|
- name: Inspect images
|
|
|
run: |
|
|
|
docker buildx imagetools inspect ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-latest
|
|
|
- docker buildx imagetools inspect ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.GITHUB_SHA_SHORT }}
|
|
|
- docker buildx imagetools inspect ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.BRANCH_NAME }}
|
|
|
+ docker buildx imagetools inspect ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ github.sha }}
|
|
|
+ docker buildx imagetools inspect ${{ env.DIFY_DAEMON_IMAGE_NAME }}:${{ matrix.scope }}-${{ env.BRANCH_NAME }}
|