generalizing build.sh
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
90e07c018a
commit
54833ecac1
1 changed files with 21 additions and 7 deletions
28
build.sh
28
build.sh
|
@ -1,13 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker buildx build \
|
||||
--platform amd64 \
|
||||
-t git.andr3w.net/amd/backup-server:latest \
|
||||
-t git.andr3w.net/amd/backup-server:$(date -I) \
|
||||
CONTAINER_NAME=backup-server
|
||||
CONTAINER_HOST=git.andr3w.net
|
||||
CONTAINER_USER=amd
|
||||
|
||||
docker buildx build \ --platform linux/$CONTAINER_USER64 \
|
||||
-t $CONTAINER_NAME \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
|
||||
.
|
||||
|
||||
docker buildx build \
|
||||
--platform arm64 \
|
||||
-t git.andr3w.net/amd/backup-server:latest \
|
||||
-t git.andr3w.net/amd/backup-server:$(date -I) \
|
||||
--platform linux/arm64 \
|
||||
-t $CONTAINER_NAME \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
|
||||
.
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/arm/v7 \
|
||||
-t $CONTAINER_NAME \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
|
||||
.
|
||||
|
||||
#docker push -a $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME
|
||||
|
|
Loading…
Reference in a new issue