Skip to content

Big refactor

Big refactor #221

Workflow file for this run

name: Docker
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- uses: docker/setup-buildx-action@v4
- name: Build runtime image
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
load: true
tags: reo7sp/tgbot-cpp
cache-from: type=gha,scope=runtime
cache-to: type=gha,mode=max,scope=runtime
- name: Build test image
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile_test
load: true
tags: reo7sp/tgbot-cpp-test
cache-from: type=gha,scope=test
cache-to: type=gha,mode=max,scope=test
- name: Run tests
run: docker run --rm reo7sp/tgbot-cpp-test