Skip to content

Bump tonic from 0.9.2 to 0.10.2 #1570

Bump tonic from 0.9.2 to 0.10.2

Bump tonic from 0.9.2 to 0.10.2 #1570

Workflow file for this run

name: Container
on:
push:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
container:
runs-on: ubuntu-20.04
strategy:
matrix:
platform: [linux/amd64]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2.3.5
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
uses: docker/metadata-action@v3
id: meta
with:
tags: |
type=sha,format=long
type=ref,prefix=pr-,event=pr
type=semver,pattern={{version}},event=tag
type=semver,pattern={{major}}.{{minor}},event=tag
type=semver,pattern={{major}},event=tag
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image (${{ matrix.platform }})
uses: docker/build-push-action@v2
with:
file: amd64.Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}