Skip to content

Galapagos 2.8.0

Galapagos 2.8.0 #16

Workflow file for this run

name: Publish Docker image
on:
release:
types: [ published ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build and push Docker Image
shell: bash
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
run: |
export TARGET_VERSION=$(mvn validate | grep 'Building Galapagos ' | cut -d' ' -f 4)
mvn -B package jib:build -Djib.to.image=docker.io/hermesgermany/galapagos -Djib.to.auth.username=$DOCKERHUB_USERNAME -Djib.to.auth.password=$DOCKERHUB_ACCESS_TOKEN -Djib.to.tags=$TARGET_VERSION,latest -Djib.httpTimeout=150000