27 lines
602 B
YAML
27 lines
602 B
YAML
name: Buf CI
|
|
on:
|
|
push:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
packages: write
|
|
|
|
jobs:
|
|
buf:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_IMG: ${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.ref_name }}
|
|
COMPOSE_PROJECT_NAME: ${{ gitea.ref_name }}-services
|
|
COMPOSE_SERVICE_NAME: ${{ github.event.repository.name }}
|
|
steps:
|
|
- run: |
|
|
echo $DOCKER_IMG - $COMPOSE_PROJECT_NAME - $COMPOSE_SERVICE_NAME
|
|
|
|
recover:
|
|
steps:
|
|
- name: The job has failed
|
|
if: ${{ failure() }}
|
|
run: echo recovering from failure
|
|
|