Skip to content

Add simple gradle build #2

Add simple gradle build

Add simple gradle build #2

Workflow file for this run

name: Docker Image
on:
push:
branches: [ "main" ]
jobs:
docker-hub:
runs-on: ubuntu-latest
steps:
- id: login
uses: docker/login-action@v3
with:
username: linyang1218
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: metadata
uses: docker/metadata-action@v5
with:
images: linyang1218/puml
tags: |
type=sha,prefix=commit-,format=short,suffix=-{{date 'YYYYMMDD'}}
type=raw,value=latest,enable={{is_default_branch}}
- id: push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}