Skip to content

Commit

Permalink
Add CD
Browse files Browse the repository at this point in the history
  • Loading branch information
naku committed Sep 28, 2020
1 parent a1f402e commit b06bd9a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 6 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and deploy Docker image

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: sismics/debian:${{ steps.get_version.outputs.VERSION }}
- name: Create Github Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_version.outputs.VERSION }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Change Log
### Version 9.0.0 (2017-09-25)
- Initial release
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ MAINTAINER Jean-Marc Tremeaux <jm.tremeaux@sismics.com>
ENV DEBIAN_FRONTEND noninteractive

# Install Sismics repository & a few utils
RUN apt-get update && apt-get install -y apt-transport-https software-properties-common wget curl gnupg vim less procps unzip
RUN apt-get update && \
apt-get install -y apt-transport-https software-properties-common wget curl gnupg vim less procps unzip && \
rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://www.sismics.com/pgp | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://nexus.sismics.com/repository/apt-stretch/ stretch main"

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# docker-debian
Dockerfile for Debian
[![GitHub release](https://img.shields.io/github/release/sismics/debian.svg?style=flat-square)](https://github.com/sismics/docker-backupninja/releases/latest)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

## About
Docker image for Debian
3 changes: 0 additions & 3 deletions build.sh

This file was deleted.

0 comments on commit b06bd9a

Please sign in to comment.