Skip to content

Merge pull request #9 from thalesmg/concurrency #32

Merge pull request #9 from thalesmg/concurrency

Merge pull request #9 from thalesmg/concurrency #32

Workflow file for this run

name: Create and publish a Docker images
on:
workflow_dispatch:
push:
branches: ['main', 'master']
tags: ['*']
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ${{ env.REGISTRY }}/emqx/emqx-schema-validate
- name: Build and push docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}