Add initial scripts and configuration for Fedora image build process
- 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
This commit is contained in:
13
push-image.sh
Executable file
13
push-image.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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}
|
||||
Reference in New Issue
Block a user