mirror of
https://github.com/sajari/docconv.git
synced 2026-10-16 21:21:59 +08:00
36fd47d63a
Refs #142
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Release docd
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
docker:
|
|
name: Publish Docker image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
- id: meta
|
|
uses: docker/metadata-action@v3
|
|
with:
|
|
images: sajari/docd
|
|
labels: |
|
|
org.opencontainers.image.description=A tool which exposes code.sajari.com/docconv/v2 as a service
|
|
org.opencontainers.image.title=docd
|
|
tags: |
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
type=sha,format=long
|
|
- uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
file: docd/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
push: true
|