Skip to content

Release v0.13.0-beta.1 (#823) #9

Release v0.13.0-beta.1 (#823)

Release v0.13.0-beta.1 (#823) #9

Workflow file for this run

name: Build and push Docker images
on:
# release:
# types: [ published ]
push:
tags:
- 'v*'
workflow_dispatch:
env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
jobs:
build_and_push_image:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: docker-image-to-lowercase
name: Convert Docker image to lower case
run: echo "DOCKER_IMAGE=$(echo ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.DOCKER_IMAGE }}
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}},prefix=v
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}