Skip to content

Another approach

Another approach #74

name: Docker Image
on:
push:
tags:
- '**'
branches:
- master
pull_request:
paths:
- .github/workflows/jaeger-dockerimage.yml
- Dockerfile
- protoc-wrapper
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Extract tags/labels from Git
id: docker_meta

Check failure on line 29 in .github/workflows/jaeger-dockerimage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/jaeger-dockerimage.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
uses: docker/metadata-action@v5
with:
images: jaegertracing/protobuf
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64