42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Buf CI
|
|
on:
|
|
push:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
packages: write
|
|
|
|
jobs:
|
|
main-act:
|
|
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: ${{ gitea.event.repository.name }}
|
|
CI_TOKEN: ${{ secrets.PROD_REG_TOKEN }}
|
|
steps:
|
|
- run: export S_URL=$$( echo ${{ gitea.server_url }} | sed "s.https://.." )
|
|
- name: Print
|
|
run: env | sort
|
|
|
|
# - name: Checkout Git
|
|
# uses: actions/checkout@v4
|
|
# with:
|
|
# token: CI_TOKEN
|
|
# submodules: recursive
|
|
# - name: Login to Docker Hub
|
|
# uses: docker/login-action@v3
|
|
# with:
|
|
# registry: git.kahrobatoken.com
|
|
# username: ${{ secrets.PROD_REG_USER }}
|
|
# password: ${{ secrets.PROD_REG_TOKEN }}
|
|
|
|
recover:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: The job has failed
|
|
if: ${{ failure() }}
|
|
run: echo recovering from failure
|
|
|