- Create .gitignore to exclude output directory - Add Containerfile for building Fedora image with necessary configurations - Implement build-iso.sh for ISO generation - Implement build.sh for building the image - Implement push-image.sh for pushing the built image to Docker Hub
13 lines
330 B
Bash
Executable File
13 lines
330 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE_NAME="tintounn/my-fedora"
|
|
IMAGE_TAG="latest"
|
|
OUTPUT_DIR="output/"
|
|
|
|
bash build.sh
|
|
|
|
echo "[INFO] Push de l'image ${IMAGE_NAME}:${IMAGE_TAG}"
|
|
|
|
sudo buildah tag localhost/${IMAGE_NAME}:${IMAGE_TAG} docker.io/${IMAGE_NAME}:${IMAGE_TAG}
|
|
sudo buildah push docker.io/${IMAGE_NAME}:${IMAGE_TAG} |