Skip to content

Commit

Permalink
v11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
naku committed Sep 28, 2020
1 parent 91cde34 commit 5b88ccd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 7 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-java:${{ 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 }}
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#
# Dockerfile for Debian + AdoptOpenJDK
#

FROM sismics/debian:stretch
FROM sismics/debian:9.0.0
MAINTAINER Jean-Marc Tremeaux <[email protected]>

# Run Debian in non interactive mode
Expand All @@ -12,4 +11,6 @@ ENV DEBIAN_FRONTEND noninteractive
ENV JAVA_HOME /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/
ENV JAVA_OPTS "-Duser.timezone=Europe/Paris -Dfile.encoding=UTF-8 -Xmx1024m"
ENV PATH "$JAVA_HOME/bin:$PATH"
RUN apt-get update && apt-get -y install adoptopenjdk-11-hotspot && rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get -y install adoptopenjdk-11-hotspot && \
rm -rf /var/lib/apt/lists/*
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# docker-debian-java
[![GitHub release](https://img.shields.io/github/release/sismics/docker-debian-java.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
Dockerfile for Debian + AdoptOpenJDK
3 changes: 0 additions & 3 deletions build.sh

This file was deleted.

0 comments on commit 5b88ccd

Please sign in to comment.