forked from istepanov/docker-mongodump
-
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.
- Loading branch information
Showing
6 changed files
with
39 additions
and
55 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,25 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Current branch | ||
uses: actions/checkout@v1 | ||
- name: Build Docker Image | ||
run: | | ||
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && make publish | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM mongo:3.6 | ||
MAINTAINER Ilya Stepanov <[email protected]> | ||
FROM mongo:8.0.3 | ||
LABEL org.opencontainers.image.authors="Ilya Stepanov <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cron python3 python3-pip && \ | ||
apt-get install -y cron python3 python3-pip pipx && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install awscli | ||
RUN pipx install awscli | ||
|
||
ADD backup.sh /backup.sh | ||
ADD entrypoint.sh /entrypoint.sh | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version=0.0.1 | ||
|
||
version: | ||
echo ${version} | ||
|
||
build: | ||
docker buildx build --rm -t nellcorp/mongodump:${version} --platform linux/amd64,linux/arm64 . | ||
|
||
publish: | ||
docker buildx build --rm -t nellcorp/mongodump:${version} --platform linux/amd64,linux/arm64 --push . |