-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |