File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change
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 .
Original file line number Diff line number Diff line change 1
- FROM leen15 /aws-cli
1
+ FROM amazon /aws-cli:2.15.35
2
2
3
3
COPY restore.sh /opt/restore.sh
4
4
RUN chmod +x /opt/restore.sh
Original file line number Diff line number Diff line change 1
1
# Restore S3 Data
2
2
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.
4
4
It searches for the last backup in a path and download it in a specific local folder.
5
5
The local folder has to be mounted if you want to use the extracted data in a volume.
6
6
You can’t perform that action at this time.
0 commit comments