Skip to content

Merge branch 'player-2.5.1' into 'main' #20

Merge branch 'player-2.5.1' into 'main'

Merge branch 'player-2.5.1' into 'main' #20

Workflow file for this run

name: build
on:
push:
tags:
- 'v*'
concurrency: prod
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Get version tag
id: git_tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
-
name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: blackfire/player
flavor: |
latest=true
tags: |
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
-
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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/386,linux/arm64
build-args: |
BLACKFIRE_PLAYER_VERSION=${{ env.VERSION }}
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}