Skip to content

Commit ca0e031

Browse files
committed
Add CD
1 parent 5d83f4f commit ca0e031

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and deploy Docker image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Get the version
13+
id: get_version
14+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
19+
- name: Login to DockerHub
20+
uses: docker/login-action@v1
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
- name: Build and push Docker image
25+
id: docker_build
26+
uses: docker/build-push-action@v2
27+
with:
28+
push: true
29+
tags: sismics/ubuntu-java:${{ steps.get_version.outputs.VERSION }}
30+
- name: Create Github Release
31+
uses: actions/create-release@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
tag_name: ${{ github.ref }}
36+
release_name: ${{ steps.get_version.outputs.VERSION }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Change Log
2+
### Version 11.0.8 (2020-09-24)
3+
- Upgrade to JDK 11.0.8
4+
### Version 11.0.2 (2019-05-03)
5+
- Upgrade to JDK 11.0.8
6+
### Version 8.191 (2018-10-21)
7+
- Initial release

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
# docker-ubuntu-java
2-
Dockerfile for Ubuntu + Oracle JDK
1+
[![GitHub release](https://img.shields.io/github/release/sismics/docker-ubuntu-java.svg?style=flat-square)](https://github.com/sismics/docker-backupninja/releases/latest)
2+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
3+
4+
## About
5+
Docker image for Ubuntu + Oracle JDK

build.sh

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

0 commit comments

Comments
 (0)