File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI - supercronic
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - " debian-supercronic/*"
9+
10+ workflow_dispatch : {}
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Build and publish "latest" Docker image
20+ 21+ with :
22+ github-token : ${{ secrets.PAT_GHCR }}
23+ image-name : debian-supercronic
24+ dockerfile : Dockerfile
25+ build-context : ./debian-supercronic
Original file line number Diff line number Diff line change 1+ FROM debian:stable-slim
2+
3+ # Latest releases available at https://github.com/aptible/supercronic/releases
4+ ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.33/supercronic-linux-amd64 \
5+ SUPERCRONIC_SHA1SUM=71b0d58cc53f6bd72cf2f293e09e294b79c666d8 \
6+ SUPERCRONIC=supercronic-linux-amd64
7+
8+ RUN apt update -y && apt install -y curl \
9+ && curl -fsSLO "$SUPERCRONIC_URL" \
10+ && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
11+ && chmod +x "$SUPERCRONIC" \
12+ && mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
13+ && ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
14+
15+ CMD ["/usr/local/bin/supercronic" ]
Original file line number Diff line number Diff line change 1+ IMAGE_NAME =$(shell basename $(shell pwd) )
2+
3+ .PHONY : build
4+ build :
5+ @docker build -t ghcr.io/chiefy/$(IMAGE_NAME ) :latest .
You can’t perform that action at this time.
0 commit comments