Fix go for release & switch to gh (#229) #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
check-unit: | |
name: Run unit tests | |
uses: ./.github/workflows/subflow_run_unit_tests.yaml | |
check-e2e: | |
name: Run e2e tests | |
needs: | |
- check-unit | |
uses: ./.github/workflows/subflow_run_e2e_tests.yaml | |
check-compat: | |
name: Run compat tests | |
needs: | |
- check-e2e | |
uses: ./.github/workflows/subflow_run_compat_tests.yaml | |
release-nightly: | |
name: Release nightly image | |
needs: | |
- check-compat | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker Hub login | |
run: | | |
echo '${{ secrets.DOCKER_HUB_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_HUB_LOGIN}} --password-stdin | |
- name: Docker | |
shell: bash | |
run: | | |
make release RELEASE_VERSION=0.0.$(git rev-list --count HEAD)-dev-${GITHUB_SHA} OPERATOR_IMAGE=ytsaurus/k8s-operator-nightly OPERATOR_CHART=ytop-chart-nightly | |
send-notifications: | |
name: Send notifications | |
needs: | |
- release-nightly | |
runs-on: trampoline | |
if: ${{ failure() }} | |
steps: | |
- name: Send telegram message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
disable_web_page_preview: true | |
format: markdown | |
message: | | |
Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. | |
Commit: ${{github.event.head_commit.sha}} | |
Message: | |
``` | |
${{github.event.head_commit.message}} | |
``` |