This commit is contained in:
Tiara Rodney 2025-05-21 02:07:18 +02:00
commit b5265baa02
No known key found for this signature in database
GPG key ID: 5F43FAB4FBE5B5EB
11 changed files with 3505 additions and 0 deletions

78
configure.ac Normal file
View file

@ -0,0 +1,78 @@
AC_INIT
AC_CHECK_PROGS([MAKE], [make], [no])
AS_IF([test "$MAKE" == "no"],
[AC_MSG_ERROR([install GNU Make, before continuiing])])
AC_CHECK_PROGS([DOCKER], [docker], [no])
AS_IF([test "$DOCKER" == "no"],
[AC_MSG_ERROR([install Docker CLI, before continuiing])])
AC_CHECK_PROGS([TRIVY], [trivy], [no])
AS_IF([test "$TRIVY" == "no"],
[AC_MSG_WARN([install Trivy CLI, before continuiing])])
AC_CHECK_PROGS([CURL], [curl], [no])
AS_IF([test "$CURL" == "no"],
[AC_MSG_ERROR([install curl, before continuiing])])
AC_CHECK_PROGS([TAR], [tar], [no])
AS_IF([test "$TAR" == "no"],
[AC_MSG_ERROR([install curl, before continuiing])])
AC_CHECK_PROGS([GZIP], [gzip], [no])
AS_IF([test "$GZIP" == "no"],
[AC_MSG_ERROR([install curl, before continuiing])])
AC_MSG_CHECKING([env for DOCKER_USERNAME])
if ! test -z "$DOCKER_USERNAME"; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([Use `make <TARGET> PUBLISH=1 to publish.`])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([DOCKER_USERNAME in env is required for publishing])
fi
AC_MSG_CHECKING([env for DOCKER_PASSWORD])
if ! test -z "$DOCKER_PASSWORD"; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([Use `make <TARGET> PUBLISH=1 to publish.`])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([DOCKER_PASSWORD in env is required for publishing])
fi
AC_MSG_CHECKING([env for BITBUCKET_ACCESS_TOKEN])
if ! test -z "$BITBUCKET_ACCESS_TOKEN"; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([Use `make <TARGET> ARCHIVE=1 to archive.`])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([BITBUCKET_ACCESS_TOKEN in env is required for archiving])
fi
AC_MSG_CHECKING([env for BITBUCKET_WORKSPACE])
if ! test -z "$BITBUCKET_WORKSPACE"; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([Use `make <TARGET> ARCHIVE=1 to archive.`])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([BITBUCKET_WORKSPACE in env is required for archiving])
fi
AC_MSG_CHECKING([env for BITBUCKET_REPO_SLUG])
if ! test -z "$BITBUCKET_REPO_SLUG"; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([Use `make <TARGET> ARCHIVE=1 to archive.`])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([BITBUCKET_REPO_SLUG in env is required for archiving])
fi
sh -ex << 'EOF'
uname
docker --version
trivy --version
EOF
AC_OUTPUT