Skip to content

Commit

Permalink
build: 推送开发版本 docker 镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Jan 2, 2025
1 parent 0ed65c4 commit cd73430
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd73430

Please sign in to comment.