chore: commented performance testing code for X25519 key generation #101
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 Dev | |
on: | |
push: | |
branches: | |
- dev | |
workflow_dispatch: | |
jobs: | |
send-tg-msg: | |
name: Send TG message | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Send Telegram message | |
uses: proDreams/actions-telegram-notifier@main | |
with: | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} | |
thread_id: ${{ secrets.TELEGRAM_TOPIC_ID }} | |
status: pending | |
notify_fields: 'repo_with_tag,commit,workflow' | |
title: 'Building docker image.' | |
build-docker-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.TOKEN_GH_DEPLOY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: DockerfileDev | |
# platforms: linux/amd64,linux/arm64 | |
platforms: linux/amd64 # ARM64 is not supported. | |
push: true | |
tags: | | |
remnawave/backend:dev | |
ghcr.io/remnawave/backend:dev | |
send-finish-tg-msg: | |
name: Send TG message | |
needs: [build-docker-image] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Send Telegram message | |
uses: proDreams/actions-telegram-notifier@main | |
with: | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} | |
thread_id: ${{ secrets.TELEGRAM_TOPIC_ID }} | |
status: ${{ job.status }} | |
notify_fields: 'repo_with_tag,commit,workflow' | |
title: 'Build Dev finished.' | |
notify-on-error: | |
runs-on: ubuntu-latest | |
needs: [build-docker-image] | |
if: failure() | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Send error notification | |
uses: proDreams/actions-telegram-notifier@main | |
with: | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} | |
thread_id: ${{ secrets.TELEGRAM_TOPIC_ID }} | |
status: failure | |
notify_fields: 'repo_with_tag,commit,workflow' | |
title: 'Build Dev failed.' |