Skip to content

Workflow file for this run

name: deploy kikeriki to docker hub
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Build the project with Maven
run: ./mvnw --batch-mode -update-snapshots package -Dmaven.test.skip=false
- name: Login to the Docker registry
run: docker login --username ${{ secrets.DOCKER_HUB_USER }} --password ${{ secrets.DOCKER_HUB_PASS }}
- name: Build the Docker image
run: docker build -t dancier/kikeriki:$(git rev-parse --short "$GITHUB_SHA") -t dancier/kikeriki:latest .
- name: Publish the Docker image on hub.docker.com
run: docker push -a dancier/kikeriki