on: workflow_call: inputs: tag: required: false type: string default: latest debug: required: false type: boolean default: false migrate: type: boolean default: false build: type: boolean default: false environment: type: string required: true host: type: string required: true jobs: deploy: if: contains(format(',{0},', vars.ADMIN_USERS), format(',{0},', github.actor)) || inputs.environment=='stage' runs-on: ubuntu-latest env: CR_REGISTRY: crp8vh46gd976oq8ipla CR_REPO: ${{ github.event.repository.name }} TAG: ${{ inputs.tag }} steps: - name: notify uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD with: result: 'started' secrets: ${{ toJSON(secrets) }} name: deploy ${{ inputs.environment }} tag ${{ inputs.tag }} - name: deploy uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/k8s@HEAD with: secrets: ${{ toJSON(secrets) }} environment: ${{ inputs.environment }} tag: ${{ inputs.tag }} migrate: ${{ inputs.migrate }} notify: needs: [deploy] if: always() uses: HUB/workflows/.github/workflows/notify.yaml@main with: result: ${{ needs.deploy.result}} name: k8s deploy ${{ inputs.environment }} tag ${{ inputs.tag }} secrets: inherit