Skip to content

Commit

Permalink
add arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
figassis committed Nov 7, 2024
1 parent b185322 commit 8d36576
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 55 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerimage.yml
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 }}
8 changes: 4 additions & 4 deletions Dockerfile-3.6 → Dockerfile
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
Expand Down
17 changes: 0 additions & 17 deletions Dockerfile-4.0

This file was deleted.

17 changes: 0 additions & 17 deletions Dockerfile-4.2

This file was deleted.

17 changes: 0 additions & 17 deletions Dockerfile-4.4

This file was deleted.

10 changes: 10 additions & 0 deletions Makefile
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 .

0 comments on commit 8d36576

Please sign in to comment.