Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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:4.9.x
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
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/90-ghost-config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cat <<"EOF"
__ _| |__ ___ ___| |_
/ _` | '_ \ / _ \/ __| __/
| (_| | | | | (_) \__ \ |_
\__, |_|_|_|\___/|___/\__|
\__, |_| |_|\___/|___/\__|
|___/ / _ \
(¯\| o (@) |/¯)
\_ .___. _/
Expand Down