mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-01-19 07:20:16 -06:00
adds docker container publishing file
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,6 +4,9 @@
|
||||
# Except those related to git
|
||||
!.git*
|
||||
|
||||
# publi.sh
|
||||
!.publi.sh
|
||||
|
||||
# python cache
|
||||
__pycache__
|
||||
|
||||
|
||||
16
.publi.sh
Normal file
16
.publi.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[[ -z "$1" ]] && echo "please define a version tag" && exit
|
||||
|
||||
IMAGE_NAME="bbricardo/netbox-sync"
|
||||
|
||||
docker --config ./docker-tmp login
|
||||
docker --config ./docker-tmp buildx create --use
|
||||
docker --config ./docker-tmp buildx build --push \
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
--tag ${IMAGE_NAME}:latest \
|
||||
--tag ${IMAGE_NAME}:${1} .
|
||||
|
||||
rm rf ./docker-tmp
|
||||
|
||||
# EOF
|
||||
Reference in New Issue
Block a user