From cd73430b8c80b7baf710810d0516edef729cdf9c Mon Sep 17 00:00:00 2001 From: Akimio521 Date: Thu, 2 Jan 2025 23:44:47 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=8E=A8=E9=80=81=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20docker=20=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 4be3f8d..dd8be84 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -42,6 +42,24 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Push Dev Docker Image + run: | + version=$(docker images akimio/mediawarp | grep -oP 'akimio/mediawarp\s+\K[^\s]+(?=-amd64)') + echo $version + IMAGE_NAME="akimio/mediawarp" + docker manifest create ${IMAGE_NAME}:${version} \ + ${IMAGE_NAME}:${version}-amd64 \ + ${IMAGE_NAME}:${version}-arm64 \ + ${IMAGE_NAME}:${version}-armv6 \ + ${IMAGE_NAME}:${version}-armv7 + + docker manifest annotate ${IMAGE_NAME}:${version} ${IMAGE_NAME}:${version}-amd64 --arch amd64 + docker manifest annotate ${IMAGE_NAME}:${version} ${IMAGE_NAME}:${version}-arm64 --arch arm64 + docker manifest annotate ${IMAGE_NAME}:${version} ${IMAGE_NAME}:${version}-armv7 --arch arm --variant v7 + docker manifest annotate ${IMAGE_NAME}:${version} ${IMAGE_NAME}:${version}-armv6 --arch arm --variant v6 + + docker manifest push ${IMAGE_NAME}:${version} + - name: Upload assets uses: actions/upload-artifact@v4 with: