Skip to content

Commit

Permalink
s3-lastmodified-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Feb 2, 2024
1 parent b892c90 commit 6e02051
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build_s3-lastmodified-checker.yaml
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 }}
11 changes: 11 additions & 0 deletions s3-lastmodified-checker/Dockerfile
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"]
23 changes: 23 additions & 0 deletions s3-lastmodified-checker/README.md
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=

0 comments on commit 6e02051

Please sign in to comment.