Skip to content

Commit 0301f6a

Browse files
committed
Add build multiarch
1 parent a5886dc commit 0301f6a

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/image.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: build our image
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout code
12+
uses: actions/checkout@v2
13+
- name: install buildx
14+
id: buildx
15+
uses: crazy-max/ghaction-docker-buildx@v1
16+
with:
17+
version: latest
18+
- name: login to docker hub
19+
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
20+
- name: build the image
21+
run: |
22+
docker buildx build \
23+
--tag leen15/restore-s3-data:multiarch \
24+
--platform linux/amd64,linux/arm/v7,linux/arm64 .

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM leen15/aws-cli
1+
FROM amazon/aws-cli:2.15.35
22

33
COPY restore.sh /opt/restore.sh
44
RUN chmod +x /opt/restore.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Restore S3 Data
22

3-
Small image based on `leen15/aws-cli` used to restore a backup from a specific bucket.
3+
Small image based on `amazon/aws-cli:2` used to restore a backup from a specific bucket.
44
It searches for the last backup in a path and download it in a specific local folder.
55
The local folder has to be mounted if you want to use the extracted data in a volume.
66

0 commit comments

Comments
 (0)