chore(papyrus_proc_macros): fix typo in handle_all_response_variants macro #6103
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Papyrus-Docker-Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- main-v[0-9].** | |
tags: | |
- v[0-9].** | |
- papyrus-v[0-9].** | |
paths: | |
- '.github/workflows/papyrus_docker-publish.yml' | |
- 'crates/papyrus**/**' | |
- 'scripts/dependencies.sh' | |
- 'deployments/images/base/Dockerfile' | |
- 'deployments/images/papyrus/Dockerfile' | |
pull_request: | |
paths: | |
- '.github/workflows/papyrus_docker-publish.yml' | |
- 'crates/papyrus**/**' | |
- 'scripts/dependencies.sh' | |
- 'deployments/images/base/Dockerfile' | |
- 'deployments/images/papyrus/Dockerfile' | |
# On PR events, cancel existing CI runs on this same PR for this workflow. | |
# Also, create different concurrency groups for different pushed commits, on push events. | |
concurrency: | |
group: > | |
${{ github.workflow }}- | |
${{ github.ref }}- | |
${{ github.event_name == 'pull_request' && 'PR' || github.sha }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
env: | |
REGISTRY: ghcr.io | |
REPO_NAME: ${{ github.repository }} | |
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld" | |
jobs: | |
docker-build-push: | |
runs-on: starkware-ubuntu-24.04-large | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Not required but recommended - enables build multi-platform images, export cache, etc | |
# Also workaround for: https://github.com/docker/build-push-action/issues/461 | |
# https://github.com/docker/setup-buildx-action | |
- name: Setup Docker buildx | |
uses: docker/setup-buildx-action@v2.2.1 | |
# Login to a Docker registry except on PR | |
# https://github.com/docker/login-action | |
- name: Login to registry ${{ env.REGISTRY }} | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v2.1.0 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
logout: true | |
# Extract metadata (tags, labels) for Docker | |
# https://github.com/docker/metadata-action | |
- name: Extract Docker metadata | |
id: meta | |
uses: docker/metadata-action@v4.1.1 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/papyrus | |
tags: | | |
type=semver,pattern={{raw}} | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=ref,event=pr | |
# set `main*` tag for the default / release branches. | |
type=raw,value={{branch}},enable=${{ github.event_name == 'push' && contains(github.ref, 'main') }} | |
# set `{branch}-{tag}` tag for tag push events. | |
type=raw,value={{tag}},enable=${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} | |
# For manual triggers of the workflow: | |
type=raw,value={{branch}}{{tag}}-{{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} | |
# Build and push Docker image with Buildx | |
# https://github.com/docker/build-push-action | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v6.13.0 | |
with: | |
context: . | |
file: deployments/images/papyrus/Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
no-cache: true |