Some checks failed
Create and publish container / build_container (push) Failing after 10s
10 lines
187 B
Bash
Executable File
10 lines
187 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Build will be tagged with $1"
|
|
echo "Build directory is $(pwd)"
|
|
|
|
OLD_IMG=docker image ls -q "$1"
|
|
docker buildx build . -t "$1"
|
|
docker push "$1"
|
|
docker image rm "$OLD_IMG"
|