Skip to content

Merge pull request #6 from meshcloud/master #2

Merge pull request #6 from meshcloud/master

Merge pull request #6 from meshcloud/master #2

name: Release Docker image
on:
push:
tags:
- 'v*'
jobs:
docker-image:
name: Release Docker image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: marcinbudny/ravendb_exporter
tags: |
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64