From b972e59136a05af9f3750d46e55c734e5e741667 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 20 Jul 2022 20:54:28 +0200 Subject: [PATCH] Buildscript entfernt --- build.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 build.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 20ff429..0000000 --- a/build.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -MF_DOCKERHUB_USER="${MF_DOCKERHUB_USER:=quotengrote}" -db_projectname="miniflux-filter" -db_commit_id=$(git rev-parse --short HEAD) - - - -if ! shellcheck ./filter.sh; then - echo "-----------------------------------" - echo "warning: fix shellcheck errors" - exit 1 -fi - -if ! docker run --rm -i ghcr.io/hadolint/hadolint < dockerfile; then - echo "-----------------------------------" - echo "warning: fix hadolint errors" - exit 1 -fi - -# pruefe ob kw gesetzt ist -if [[ -z "$MF_DOCKERHUB_PASS" ]]; then - # shellcheck disable=SC2016 - echo '"$MF_DOCKERHUB_PASS"' not set. - exit 2 -fi -# login -docker login --username "$MF_DOCKERHUB_USER" --password "$MF_DOCKERHUB_PASS" -# latest -docker build -t "$MF_DOCKERHUB_USER"/"$db_projectname" . -docker push "$MF_DOCKERHUB_USER"/"$db_projectname":latest -# commit-id -docker tag "$MF_DOCKERHUB_USER"/"$db_projectname":latest "$MF_DOCKERHUB_USER"/"$db_projectname":"$db_commit_id" -docker push "$MF_DOCKERHUB_USER"/"$db_projectname":"$db_commit_id"