feat: add docker push script and DockerHub deployment docs
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 4m24s
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 4m24s
This commit is contained in:
24
docker-push.sh
Executable file
24
docker-push.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script pour builder et push l'image Docker vers DockerHub
|
||||
# Usage: ./docker-push.sh [tag]
|
||||
|
||||
set -e
|
||||
|
||||
DOCKER_USERNAME="julienfroidefond32"
|
||||
IMAGE_NAME="stripstream"
|
||||
|
||||
# Utiliser le tag fourni ou 'latest' par défaut
|
||||
TAG=${1:-latest}
|
||||
|
||||
FULL_IMAGE_NAME="$DOCKER_USERNAME/$IMAGE_NAME:$TAG"
|
||||
|
||||
echo "=== Building Docker image: $FULL_IMAGE_NAME ==="
|
||||
docker build -t $FULL_IMAGE_NAME .
|
||||
|
||||
echo ""
|
||||
echo "=== Pushing to DockerHub: $FULL_IMAGE_NAME ==="
|
||||
docker push $FULL_IMAGE_NAME
|
||||
|
||||
echo ""
|
||||
echo "=== Successfully pushed: $FULL_IMAGE_NAME ==="
|
||||
Reference in New Issue
Block a user