Skip to content

[FEATURE] mailet collector Benchmark #46

[FEATURE] mailet collector Benchmark

[FEATURE] mailet collector Benchmark #46

Workflow file for this run

name: Bot deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-bot-artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🔧 Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: 📦 Build with Maven
run: mvn -B package --file pom.xml
working-directory: telegram-bot
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: 📊 Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Copy Jar file
run: mv telegram-bot/target/*.jar disposable-email-bot.jar
- name: 📂 Upload bot
uses: actions/upload-artifact@v3
with:
name: disposable-email-bot
path: disposable-email-bot.jar
build-bot-image:
runs-on: ubuntu-latest
needs: build-bot-artifact
steps:
- uses: actions/checkout@v3
- name: 📂 Download bot
uses: actions/download-artifact@v3
with:
name: disposable-email-bot
path: telegram-bot/target/
- name: 🔍 Display structure of downloaded files
run: stat disposable-email-bot.jar
working-directory: telegram-bot/target/
- name: 🔧 Set up QEMU
uses: docker/setup-qemu-action@v2
- 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: 🐋 Build and push image
uses: docker/build-push-action@v4
with:
context: ./telegram-bot
file: telegram-bot/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/dsp-eml-prj-bot:latest