Skip to content

Commit b9bbeac

Browse files
author
Omar Ahmad
committed
Merge branch 'main' of github.com:willfarrell/docker-crontab
2 parents 200cd13 + a4e4227 commit b9bbeac

File tree

3 files changed

+63
-3
lines changed

3 files changed

+63
-3
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [willfarrell]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
multi:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
name: Checkout
18+
uses: actions/checkout@v2
19+
-
20+
name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
-
23+
name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v1
25+
-
26+
name: Login to DockerHub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKER_USERNAME }}
30+
password: ${{ secrets.DOCKER_PASSWORD }}
31+
32+
- if: github.ref == 'refs/heads/main'
33+
name: Conditional(Set tag as `latest`)
34+
run: echo "tag=willfarrell/crontab:latest" >> $GITHUB_ENV
35+
36+
- if: startsWith(github.ref, 'refs/tags/')
37+
name: Conditional(Set tag as `{version}`)
38+
run: echo "tag=willfarrell/crontab:${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
39+
40+
-
41+
name: Build and push
42+
uses: docker/build-push-action@v2
43+
with:
44+
context: .
45+
file: ./Dockerfile
46+
push: true
47+
tags: |
48+
${{ env.tag }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ A simple wrapper over `docker` to all complex cron job to be run in other contai
55
## Supported tags and Dockerfile links
66

77
- [`latest` (*Dockerfile*)](https://github.com/willfarrell/docker-crontab/blob/master/Dockerfile)
8+
- [`0.6.0` (*Dockerfile*)](https://github.com/willfarrell/docker-crontab/blob/0.6.0/Dockerfile)
89

9-
[![](https://images.microbadger.com/badges/version/willfarrell/crontab.svg)](http://microbadger.com/images/willfarrell/crontab "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/willfarrell/crontab.svg)](http://microbadger.com/images/willfarrell/crontab "Get your own image badge on microbadger.com")
10-
10+
![](https://img.shields.io/docker/pulls/willfarrell/crontab "Total docker pulls") [![](https://images.microbadger.com/badges/image/willfarrell/crontab.svg)](http://microbadger.com/images/willfarrell/crontab "Get your own image badge on microbadger.com")
1111

1212
## Why?
13-
Yes, I'm aware of [mcuadros/ofelia](https://github.com/mcuadros/ofelia) (280MB), it was the main inspiration for this project.
13+
Yes, I'm aware of [mcuadros/ofelia](https://github.com/mcuadros/ofelia) (~10MB), it was the main inspiration for this project.
1414
A great project, don't get me wrong. It was just missing certain key enterprise features I felt were required to support where docker is heading.
1515

1616
## Features

0 commit comments

Comments
 (0)