forked from flitz-be/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build s3-lastmodified-checker | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
jobs: | ||
build: | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGENAME: s3-lastmodified-checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out code | ||
- name: Docker build | ||
uses: mr-smithers-excellent/docker-build-push@v5 | ||
with: | ||
image: ${{ env.IMAGENAME }} | ||
registry: ${{ env.REGISTRY }} | ||
directory: s3-lastmodified-checker | ||
dockerfile: s3-lastmodified-checker/Dockerfile | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM zulhfreelancer/aws-cli-v2-on-ubuntu | ||
|
||
RUN curl --version | ||
|
||
#RUN apt-get update && apt-get install -y curl | ||
|
||
ADD run.sh /opt/s3-lastmodified-checker/run.sh | ||
|
||
WORKDIR /s3-lastmodified-checker | ||
|
||
ENTRYPOINT ["/opt/s3-lastmodified-checker/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# s3-lastmodified-checker | ||
Lightweight s3 checker for lastmodified file in bucket + prefix | ||
Will notify Sentry by HTTP Curl if configured appropriate SENTRY_CRONS is set | ||
|
||
## Basic usage | ||
|
||
```sh | ||
$ docker run ghcr.io/getalby/s3-lastmodified-checker | ||
``` | ||
|
||
## Environment variables | ||
|
||
|
||
S3_ACCESS_KEY_ID= | ||
S3_SECRET_ACCESS_KEY= | ||
S3_BUCKET= | ||
S3_ENDPOINT= | ||
S3_PREFIX= | ||
HOURS_AGO= | ||
|
||
(Optional for notifying Sentry CRONs) | ||
|
||
SENTRY_CRONS= |