mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-08-19 23:27:23 -04:00
Add build script to be called by ledgersmb-release-tools/publish
Some checks failed
Docker Image cleanup / cleanup (push) Has been cancelled
Some checks failed
Docker Image cleanup / cleanup (push) Has been cancelled
This commit is contained in:
parent
3a28ec4f27
commit
8227099206
21
build
Executable file
21
build
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
if [[ -n "${SET_LATEST_TAG:-}" ]]
|
||||
then
|
||||
latest_tags="-t ledgersmb/ledgersmb:latest -t ghcr.io/ledgersmb/ledgersmb:latest"
|
||||
else
|
||||
latest_tags=
|
||||
fi
|
||||
|
||||
${DOCKER:-docker} buildx build \
|
||||
--progress plain \
|
||||
--platform ${PLATFORM:-linux/amd64,linux/arm64,linux/arm/v7} \
|
||||
--build-arg "ARTIFACT_LOCATION=$ARTIFACT_LOCATION" \
|
||||
-t ledgersmb/ledgersmb:$BRANCH \
|
||||
-t ledgersmb/ledgersmb:$VERSION \
|
||||
-t ghcr.io/ledgersmb/ledgersmb:$BRANCH \
|
||||
-t ghcr.io/ledgersmb/ledgersmb:$VERSION \
|
||||
$latest_tags \
|
||||
--push .
|
Loading…
Reference in New Issue
Block a user