# local registry
registry_url=registry.example.com
registry_user=username
registry_token=password
registry_tag=$(date +%F)

## Gitlab CI using CI/CD variables see: https://docs.gitlab.com/ee/user/packages/container_registry/
#registry_url=$CI_REGISTRY		#		#			# 
#registry_user=$CI_REGISTRY_USER	#		# $CI_DEPLOY_USER	# username
#registry_token=$CI_REGISTRY_PASSWORD	# $CI_JOB_TOKEN	# $CI_DEPLOY_PASSWORD	# access_token
#registry_tag=$CI_COMMIT_SHA

# NB For CI/CD we use the .gitlab-ci.yml for the build and push, see: the url above
# $CI_REGISTRY_IMAGE would be resolved to the address of the registry tied to this project.
# $CI_COMMIT_REF_SLUG is like $CI_COMMIT_REF_NAME but avoids the use of forward slashes by
# using only 0-9 a-z and replacing everything else with '-' or use $CI_COMMIT_SHA instead
#
# giving:
# docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG -f ./Dockerfile
# docker push     $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG

# add these to purge packages
#purge_packages+=(

slimify-packages+=(
iproute2
iputils-ping
libcap2
libcap2-bin
libelf1
libmnl0
libxtables12
)

slimIncludes+=(
/usr/share/doc/*/copyright
/usr/share/doc/kde/HTML/C/*
/usr/share/gnome/help/*/C/*
/usr/share/locale/all_languages
/usr/share/locale/currency/*
/usr/share/locale/l10n/*
/usr/share/locale/languages
/usr/share/locale/locale.alias
/usr/share/omf/*/*-C.emf
)

slimExcludes+=(
/usr/share/doc/*
/usr/share/info/*
/usr/share/linda/*
/usr/share/lintian/overrides/*
/usr/share/locale/*
/usr/share/man/*
/usr/share/doc/kde/HTML/*/*
/usr/share/gnome/help/*/*
/usr/share/locale/*
/usr/share/omf/*/*-*.emf
)
