File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 ACCESS_KEY_ID : ${{ secrets.ACCESS_KEY_ID }}
1515 MIRROR_TARGET : ${{ secrets.MIRROR_TARGET }}
1616 SECRET_ACCESS_KEY : ${{ secrets.SECRET_ACCESS_KEY }}
17+ STORAGE_SERVICE_URL : ${{ secrets.STORAGE_SERVICE_URL }}
1718 with :
1819 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
22
33LABEL maintainer=
"Peter Evans <[email protected] >" 44LABEL repository="https://github.com/peter-evans/s3-backup"
@@ -13,4 +13,4 @@ COPY LICENSE README.md /
1313
1414COPY entrypoint.sh /entrypoint.sh
1515
16- ENTRYPOINT ["/entrypoint.sh" ]
16+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 9292## License
9393
9494[ 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"}
66MIRROR_SOURCE=${MIRROR_SOURCE:= " ." }
77
88# 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 "
1010
1111# Execute mc mirror
1212mc mirror $* " $MIRROR_SOURCE " " $STORAGE_SERVICE_ALIAS /$MIRROR_TARGET "
You can’t perform that action at this time.
0 commit comments