forked from databacker/mysql-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request databacker#109 from databacker/circleci
Switch to circleci
- Loading branch information
Showing
16 changed files
with
709 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# circleci to build and test; deploy when on master | ||
--- | ||
version: 2.1 | ||
jobs: | ||
ci: | ||
docker: | ||
- image: alpine:3.10 | ||
steps: | ||
- run: | ||
name: Add dependencies | ||
command: apk --update add make docker bash ca-certificates git | ||
- checkout | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
version: 18.06.0-ce | ||
# no need to install docker, as it is included in the above circleci/ruby image | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- . | ||
- run: | ||
name: build | ||
command: make build | ||
- run: | ||
name: test | ||
command: make test DEBUG=debug | ||
deploy: | ||
docker: | ||
- image: alpine:3.10 | ||
steps: | ||
- run: | ||
name: Add dependencies | ||
command: apk --update add make docker bash ca-certificates git | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: push | ||
command: make push | ||
|
||
workflows: | ||
version: 2 | ||
test-deploy: | ||
jobs: | ||
- ci | ||
- deploy: | ||
requires: | ||
- ci | ||
filters: | ||
branches: | ||
only: master |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# mysql backup image | ||
ARG BASE=mysqlbackup_backup_test | ||
FROM ${BASE} | ||
MAINTAINER Avi Deitcher <https://github.com/deitch> | ||
|
||
COPY entrypoint_cron.sh /entrypoint | ||
|
||
ENTRYPOINT ["/entrypoint"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# mysql backup image | ||
ARG BASE=mysqlbackup_backup_test | ||
FROM ${BASE} | ||
MAINTAINER Avi Deitcher <https://github.com/deitch> | ||
|
||
# set us up to run as non-root user | ||
# user/group 'appuser' are created in the base | ||
USER root | ||
|
||
RUN mkdir -p /backups && chown appuser:appuser /backups | ||
|
||
USER appuser | ||
|
||
COPY entrypoint_test.sh /entrypoint | ||
COPY cron_test.sh /cron_test.sh | ||
|
||
ENTRYPOINT ["/entrypoint"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.