Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Update footer year #102

Update footer year

Update footer year #102

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Build with Gradle Wrapper
run: ./gradlew installDist --no-daemon
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_HUB_SECRET}}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: seliba/dasblog
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: seliba/dasblog:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=seliba/dasblog:latest
cache-to: type=inline