Skip to content

chore(deps): bump anyhow from 1.0.89 to 1.0.90 (#420) #883

chore(deps): bump anyhow from 1.0.89 to 1.0.90 (#420)

chore(deps): bump anyhow from 1.0.89 to 1.0.90 (#420) #883

name: Weaver Docker Generator
on:
push:
tags: [ '**' ]
branches:
- main
pull_request:
branches:
- main
paths:
- .github/workflows/publish-docker.yml
- 'src/**'
- 'crates/**'
- Dockerfile
env:
TEST_WEAVER_TAG: otel/weaver:test
jobs:
make-docker-image:
name: Docker Image
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
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: otel/weaver
- name: Build test image
uses: docker/build-push-action@v6.6.1
with:
push: false
load: true
tags: ${{ env.TEST_WEAVER_TAG }}
labels: ${{ steps.meta.outputs.labels }}
- name: Test
run: |
docker run --rm ${{ env.TEST_WEAVER_TAG }} --help
- name: Log in to Docker Hub
uses: docker/login-action@v3.3.0
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6.6.1
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
with:
push: true
platforms: linux/amd64,linux/arm64
provenance: mode=max
sbom: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}