Skip to content

quick fix for #113

quick fix for #113 #12

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: mlomb/chat-analytics
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# release tag
type=semver,pattern={{version}},prefix=v
- uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}