#!/bin/bash
# Copyright (c) 2023 fithwum
# All rights reserved

docker build --pull --rm -f "debian/buster/Dockerfile" -t gitea.fithwum.tech/fithwum/debian-base:buster "debian/buster"
docker build --pull --rm -f "debian/bullseye/Dockerfile" -t gitea.fithwum.tech/fithwum/debian-base:bullseye "debian/bullseye"
docker build --pull --rm -f "debian/bookworm/Dockerfile" -t gitea.fithwum.tech/fithwum/debian-base:bookworm "debian/bookworm"
docker build --pull --rm -f "debian/docker-build/Dockerfile" -t gitea.fithwum.tech/fithwum/debian-base:docker-build "debian/docker-build"
docker push -a gitea.fithwum.tech/fithwum/debian-base

docker build --pull --rm -f "debian/buster/Dockerfile" -t fithwum/debian-base:buster "debian/buster"
docker build --pull --rm -f "debian/bullseye/Dockerfile" -t fithwum/debian-base:bullseye "debian/bullseye"
docker build --pull --rm -f "debian/bookworm/Dockerfile" -t fithwum/debian-base:bookworm "debian/bookworm"
docker build --pull --rm -f "debian/docker-build/Dockerfile" -t fithwum/debian-base:docker-build "debian/docker-build"
docker push -a fithwum/debian-base