proto/.gitea/workflows/test.yaml
nfel 6396711ba7
v2:
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-11-26 12:24:40 +03:30

43 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 }}
S2_URL: echo ${{ gitea.server_url }} | sed "s.https://.."
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