Skip to content

Commit 5319ed4

Browse files
committed
add debian-supercronic
1 parent 3b2dfcc commit 5319ed4

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
uses: VaultVulp/[email protected]
21+
with:
22+
github-token: ${{ secrets.PAT_GHCR }}
23+
image-name: debian-supercronic
24+
dockerfile: Dockerfile
25+
build-context: ./debian-supercronic

debian-supercronic/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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"]

debian-supercronic/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
IMAGE_NAME=$(shell basename $(shell pwd))
2+
3+
.PHONY: build
4+
build:
5+
@docker build -t ghcr.io/chiefy/$(IMAGE_NAME):latest .

0 commit comments

Comments
 (0)