Skip to content

Build Docker Image

Build Docker Image #12

Workflow file for this run

name: Build Docker Image
on:
workflow_dispatch:
release:
types:
- published
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up labels
id: meta
uses: docker/metadata-action@v5
with:
images: bryntum/pdf-export-server
tags: |
bryntum/pdf-export-server:${{ github.event.release.tag_name }}
bryntum/pdf-export-server:latest
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}