feat(docker): gradle-8

This commit is contained in:
tiennm99 committed 2025-10-06 21:12:34 +07:00
1 parent cde575bd7e
commit 8b27ca039f
2 files changed
+76

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
name: Publish Gradle 8 Docker Image
on:
push:
branches: [main]
paths:
- 'gradle-8/**'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/gradle-8
tags: |
type=raw,value=latest
type=raw,value=8.14.3
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: gradle-8
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}