Skip to content

Commit 84a048c

Browse files
committed
Move to GitHub actions and configure Dependabot
1 parent ba85945 commit 84a048c

File tree

5 files changed

+80
-12
lines changed

5 files changed

+80
-12
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 99
9+
- package-ecosystem: bundler
10+
directory: "/"
11+
schedule:
12+
interval: daily
13+
time: "04:00"
14+
open-pull-requests-limit: 99
15+
- package-ecosystem: github-actions
16+
directory: "/"
17+
schedule:
18+
interval: daily
19+
open-pull-requests-limit: 10

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and deploy latest image
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Lint the codebase
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/[email protected]
11+
- name: Super-Linter
12+
uses: github/[email protected]
13+
env:
14+
ERROR_ON_MISSING_EXEC_BIT: true
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
LINTER_RULES_PATH: .
17+
VALIDATE_ALL_CODEBASE: true
18+
push:
19+
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) }}
20+
name: Deploy images
21+
needs: build
22+
runs-on: ubuntu-20.04
23+
steps:
24+
- name: Login to Docker Hub
25+
uses: docker/login-action@v1
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
- name: Push to Docker Hub (latest)
30+
uses: docker/build-push-action@v2
31+
with:
32+
context: .
33+
push: true
34+
tags: ferrarimarco/github-changelog-generator:latest
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy tagged image
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
push:
9+
if: github.event_name == 'release' && github.event.action == 'created'
10+
name: Deploy tagged image
11+
needs: build
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Login to Docker Hub
15+
uses: docker/login-action@v1
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
- name: Push to Docker Hub (tagged)
20+
uses: docker/build-push-action@v2
21+
with:
22+
context: .
23+
push: true
24+
tags: ferrarimarco/github-changelog-generator:${{ github.event.release.tag_name }}

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Dockerized Github Changelog Generator
22

3-
[![Build Status](https://travis-ci.com/github-changelog-generator/docker-github-changelog-generator.svg?branch=master)](https://travis-ci.com/github-changelog-generator/docker-github-changelog-generator) ![Docker Stars](https://img.shields.io/docker/stars/ferrarimarco/github-changelog-generator.svg) [![Docker Pulls](https://img.shields.io/docker/pulls/ferrarimarco/github-changelog-generator.svg)](https://hub.docker.com/r/ferrarimarco/github-changelog-generator/) [![Docker Automated build](https://img.shields.io/docker/automated/ferrarimarco/github-changelog-generator.svg)](https://hub.docker.com/r/ferrarimarco/github-changelog-generator/) ![Docker Build Status](https://img.shields.io/docker/build/ferrarimarco/github-changelog-generator.svg)
3+
[![Build Status](https://github.com/github/docs/actions/workflows/main.yml/badge.svg)](https://travis-ci.com/github-changelog-generator/docker-github-changelog-generator)
4+
![Docker Stars](https://img.shields.io/docker/stars/ferrarimarco/github-changelog-generator.svg)
5+
[![Docker Pulls](https://img.shields.io/docker/pulls/ferrarimarco/github-changelog-generator.svg)](https://hub.docker.com/r/ferrarimarco/github-changelog-generator/)
46

57
This is an official containerization of [Github Changelog Generator](https://github.com/github-changelog-generator/github-changelog-generator).
68

0 commit comments

Comments
 (0)