Skip to content

Merge pull request #9 from gdi-be/import-capabilities #9

Merge pull request #9 from gdi-be/import-capabilities

Merge pull request #9 from gdi-be/import-capabilities #9

Workflow file for this run

name: Publish Docker image
on:
push:
branches: ['main']
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Run the Maven install phase
run: mvn -B install
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and deploy docker image
run: cd mde-services && mvn -B jib:build