chore: bump version to 0.5.2 and update dependencies #37
Workflow file for this run
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 & Push Docker Image | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
send-start-deploy-telegram-message: | |
name: Send Telegram message | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Send Telegram message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: html | |
message: | | |
🏹 <b>Deploy</b> <code>${{ github.REPOSITORY }}@${{ github.ref_name }}</code> has started. | |
⏱️ <code>${{ github.event.head_commit.timestamp }}</code> | |
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: '20.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: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
remnawave/node:latest | |
remnawave/node:${{github.ref_name}} | |
ghcr.io/remnawave/node:latest | |
ghcr.io/remnawave/node:${{github.ref_name}} | |
create-release: | |
needs: [build-docker-image] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GH_DEPLOY }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: v${{ github.ref_name }} | |
body: | | |
🚀 Autogenerated release v${{ github.ref_name }} | |
Latest Docker image: | |
- `remnawave/node:latest` | |
- `ghcr.io/remnawave/node:latest` | |
Docker images: | |
- `remnawave/node:${{github.ref_name}}` | |
- `ghcr.io/remnawave/node:${{github.ref_name}}` | |
draft: false | |
prerelease: false | |
send-telegram-message: | |
name: Send Telegram message | |
needs: [build-docker-image, create-release] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Send Telegram message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: html | |
message: | | |
✅ <b>Deploy</b> <code>${{ github.REPOSITORY }}@${{ github.ref_name }}</code> has finished. | |
image tag: <code>${{ github.sha }}</code> | |
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: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
❌ ${{ github.REPOSITORY }}@${{ github.ref_name }} build failed |