From 694144ee751bfd2c34c3e02f8e8529682e12ba46 Mon Sep 17 00:00:00 2001 From: ghostserverd <42226464+ghostserverd@users.noreply.github.com> Date: Sat, 16 Nov 2019 15:35:07 -0800 Subject: [PATCH 1/3] Update 90-ghost-config --- root/etc/cont-init.d/90-ghost-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/90-ghost-config b/root/etc/cont-init.d/90-ghost-config index 99c6485..5c6a56f 100644 --- a/root/etc/cont-init.d/90-ghost-config +++ b/root/etc/cont-init.d/90-ghost-config @@ -5,7 +5,7 @@ cat <<"EOF" __ _| |__ ___ ___| |_ / _` | '_ \ / _ \/ __| __/ | (_| | | | | (_) \__ \ |_ - \__, |_|_|_|\___/|___/\__| + \__, |_| |_|\___/|___/\__| |___/ / _ \ (¯\| o (@) |/¯) \_ .___. _/ From 249635fa51ff2d555b95812288965933758bd3a9 Mon Sep 17 00:00:00 2001 From: ghostserverd <42226464+ghostserverd@users.noreply.github.com> Date: Sat, 21 Aug 2021 18:16:23 -0700 Subject: [PATCH 2/3] Add .circleci/config.yml --- .circleci/config.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d8f41c7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,69 @@ +version: 2.1 +executors: + docker-publisher: + environment: + IMAGE_NAME: ghostserverd/filebot + docker: + - image: circleci/buildpack-deps:stretch +jobs: + build: + executor: docker-publisher + steps: + - checkout + - setup_remote_docker + - run: + name: Build Docker image + command: | + docker build -t $IMAGE_NAME:4.9.x . + - run: + name: Archive Docker image + command: docker save -o image.tar $IMAGE_NAME + - persist_to_workspace: + root: . + paths: + - ./image.tar + publish-latest: + executor: docker-publisher + steps: + - attach_workspace: + at: /tmp/workspace + - setup_remote_docker + - run: + name: Load archived Docker image + command: docker load -i /tmp/workspace/image.tar + - run: + name: Publish Docker Image to Docker Hub + command: | + echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin + docker push $IMAGE_NAME:latest +workflows: + version: 2 + build-master: + jobs: + - build: + filters: + branches: + only: 4.9.x + - publish-latest: + requires: + - build + filters: + branches: + only: 4.9.x + context: DOCKER_CREDS + build-on-schedule: + jobs: + - build + - publish-latest: + requires: + - build + context: DOCKER_CREDS + # The cron format is: + # min (0-59) hour (0-23) monthday (1-31) month (1-12) weekday (0-6, 0=Sun) + triggers: + - schedule: + cron: "30 7 * * *" + filters: + branches: + only: + - 4.9.x From 161ed7727513607262e7afaf0b26b3bec7a49f99 Mon Sep 17 00:00:00 2001 From: ghostserverd <42226464+ghostserverd@users.noreply.github.com> Date: Sat, 21 Aug 2021 18:19:12 -0700 Subject: [PATCH 3/3] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d8f41c7..6d1c925 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,7 @@ jobs: name: Publish Docker Image to Docker Hub command: | echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin - docker push $IMAGE_NAME:latest + docker push $IMAGE_NAME:4.9.x workflows: version: 2 build-master: