mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-23 14:40:27 +01:00
ci: 👷 add build all images script (#62)
* ci: 👷 add build all images script * chore: 🔧 typo Co-authored-by: apotdevin <apotdevincab@gmail.com>
This commit is contained in:
parent
358dc3760a
commit
189495e002
2 changed files with 20 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
"build:32": "docker build --no-cache -f arm32v7.Dockerfile -t apotdevin/thunderhub:test-arm32v7 .",
|
"build:32": "docker build --no-cache -f arm32v7.Dockerfile -t apotdevin/thunderhub:test-arm32v7 .",
|
||||||
"build:64": "docker build -f arm64v8.Dockerfile -t apotdevin/thunderhub:test-arm64v8 .",
|
"build:64": "docker build -f arm64v8.Dockerfile -t apotdevin/thunderhub:test-arm64v8 .",
|
||||||
"build:manifest": "docker manifest create apotdevin/thunderhub:test apotdevin/thunderhub:test-amd64 apotdevin/thunderhub:test-arm32v7 apotdevin/thunderhub:test-arm64v8",
|
"build:manifest": "docker manifest create apotdevin/thunderhub:test apotdevin/thunderhub:test-amd64 apotdevin/thunderhub:test-arm32v7 apotdevin/thunderhub:test-arm64v8",
|
||||||
|
"build:all": "sh ./scripts/buildAllImages.sh",
|
||||||
"upgrade-latest": "npx npm-check -u",
|
"upgrade-latest": "npx npm-check -u",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"update": "sh ./scripts/updateToLatest.sh"
|
"update": "sh ./scripts/updateToLatest.sh"
|
||||||
|
|
19
scripts/buildAllImages.sh
Normal file
19
scripts/buildAllImages.sh
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
REPO=apotdevin/thunderhub
|
||||||
|
VERSION=0.7.1
|
||||||
|
|
||||||
|
docker build --pull -t $REPO:$VERSION-amd64 -f Dockerfile .
|
||||||
|
docker push $REPO:$VERSION-amd64
|
||||||
|
|
||||||
|
docker build --pull -t $REPO:$VERSION-arm32v7 -f arm32v7.Dockerfile .
|
||||||
|
docker push $REPO:$VERSION-arm32v7
|
||||||
|
|
||||||
|
docker build --pull -t $REPO:$VERSION-arm64v8 -f arm64v8.Dockerfile .
|
||||||
|
docker push $REPO:$VERSION-arm64v8
|
||||||
|
|
||||||
|
docker manifest create --amend $REPO:$VERSION $REPO:$VERSION-amd64 $REPO:$VERSION-arm32v7 $REPO:$VERSION-arm64v8
|
||||||
|
docker manifest annotate $REPO:$VERSION $REPO:$VERSION-amd64 --os linux --arch amd64
|
||||||
|
docker manifest annotate $REPO:$VERSION $REPO:$VERSION-arm32v7 --os linux --arch arm --variant v7
|
||||||
|
docker manifest annotate $REPO:$VERSION $REPO:$VERSION-arm64v8 --os linux --arch arm64 --variant v8
|
||||||
|
docker manifest push $REPO:$VERSION -p
|
Loading…
Add table
Reference in a new issue