File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
ACCESS_KEY_ID : ${{ secrets.ACCESS_KEY_ID }}
15
15
MIRROR_TARGET : ${{ secrets.MIRROR_TARGET }}
16
16
SECRET_ACCESS_KEY : ${{ secrets.SECRET_ACCESS_KEY }}
17
+ STORAGE_SERVICE_URL : ${{ secrets.STORAGE_SERVICE_URL }}
17
18
with :
18
19
args : --overwrite --remove
Original file line number Diff line number Diff line change 1
- FROM minio/mc:RELEASE.2020-02-05T20-07-22Z
1
+ FROM minio/mc:RELEASE.2020-10-03T02-54-56Z
2
2
3
3
LABEL maintainer="Peter Evans <mail@peterevans.dev>"
4
4
LABEL repository="https://github.com/peter-evans/s3-backup"
@@ -13,4 +13,4 @@ COPY LICENSE README.md /
13
13
14
14
COPY entrypoint.sh /entrypoint.sh
15
15
16
- ENTRYPOINT ["/entrypoint.sh" ]
16
+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 92
92
## License
93
93
94
94
[ MIT] ( LICENSE )
95
+
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ STORAGE_SERVICE_URL=${STORAGE_SERVICE_URL:="https://s3.amazonaws.com"}
6
6
MIRROR_SOURCE=${MIRROR_SOURCE:= " ." }
7
7
8
8
# Set mc configuration
9
- mc config host add " $STORAGE_SERVICE_ALIAS " " $STORAGE_SERVICE_URL " " $ACCESS_KEY_ID " " $SECRET_ACCESS_KEY "
9
+ mc alias set " $STORAGE_SERVICE_ALIAS " " $STORAGE_SERVICE_URL " " $ACCESS_KEY_ID " " $SECRET_ACCESS_KEY "
10
10
11
11
# Execute mc mirror
12
12
mc mirror $* " $MIRROR_SOURCE " " $STORAGE_SERVICE_ALIAS /$MIRROR_TARGET "
You can’t perform that action at this time.
0 commit comments