mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-20 01:52:32 +01:00
aasdsad
This commit is contained in:
parent
639a888e60
commit
e2702f1ee2
19
.github/workflows/docker-build.yml
vendored
19
.github/workflows/docker-build.yml
vendored
@ -123,15 +123,18 @@ jobs:
|
|||||||
DOCKER_CLI_EXPERIMENTAL: enabled
|
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||||
run: |
|
run: |
|
||||||
IMAGE=${{ matrix.registry }}/${GITHUB_REPOSITORY,,}
|
IMAGE=${{ matrix.registry }}/${GITHUB_REPOSITORY,,}
|
||||||
SOURCE=${GITHUB_REPOSITORY,,}:${{ github.ref_name }}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}-${{ env.ARCHITECTURE }}${{ github.event.inputs.tag }}
|
TAG=${{ github.ref_name }}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}
|
||||||
TAG=${{ github.ref_name }}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}-${{ env.ARCHITECTURE }}${{ github.event.inputs.tag }}
|
SOURCE=${IMAGE}:${TAG}
|
||||||
[[ -f ${{ env.ARCHITECTURE }}.Dockerfile ]] && ARCH=${SOURCE}
|
[[ -f linux-amd64.Dockerfile ]] && AMD64=${SOURCE}-linux-amd64
|
||||||
|
[[ -f linux-arm64.Dockerfile ]] && ARM64=${SOURCE}-linux-arm64
|
||||||
docker manifest create ${IMAGE}:${TAG} ${ARCH}
|
[[ -f linux-arm-v7.Dockerfile ]] && ARMV7=${SOURCE}-linux-arm-v7
|
||||||
docker manifest push ${IMAGE}:${TAG}
|
|
||||||
|
docker manifest create ${IMAGE}:${TAG}${{ github.event.inputs.tag }} ${AMD64} ${ARM64} ${ARMV7}
|
||||||
|
docker manifest push ${IMAGE}:${TAG}${{ github.event.inputs.tag }}
|
||||||
|
|
||||||
TAG=${{ github.ref_name }}${{ github.event.inputs.tag }}
|
TAG=${{ github.ref_name }}${{ github.event.inputs.tag }}
|
||||||
docker manifest create ${IMAGE}:${TAG} ${ARCH}
|
docker manifest create ${IMAGE}:${TAG} ${AMD64} ${ARM64} ${ARMV7}
|
||||||
docker manifest push ${IMAGE}:${TAG}
|
docker manifest push ${IMAGE}:${TAG}${{ github.event.inputs.tag }}
|
||||||
- name: Latest manifest
|
- name: Latest manifest
|
||||||
if: ${{ github.event.release.target_commitish == 'master' }}
|
if: ${{ github.event.release.target_commitish == 'master' }}
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user