46 lines
1.2 KiB
YAML
46 lines
1.2 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 DOCKER2_IMG=$( echo ${{ env.DOCKER_IMG }} | sed "s.https://..")
|
|
- run: env | sort
|
|
- run: |
|
|
echo $DOCKER_IMG
|
|
echo ${{ env.DOCKER_IMG }} | sed "s.https://.."
|
|
|
|
# - 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
|
|
|