Files
M1rs3m 551facc52b
Some checks failed
Docker. / Ubuntu (push) Failing after 23s
Lock Threads / lock (push) Has been cancelled
Waiting for answer. / waiting-for-answer (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
Needs user action. / needs-user-action (push) Has been cancelled
Can't reproduce. / cant-reproduce (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 9s
Unused styles updater. / Unused-styles (push) Failing after 7s
НИИГрам Desktop: branding, DC 82.146.62.100, RSA, org.niigram.desktop
2026-08-21 08:18:52 +00:00

43 lines
1.1 KiB
YAML

name: Docker.
on:
push:
paths:
- '.github/workflows/docker.yml'
- 'Telegram/build/docker/centos_env/**'
jobs:
docker:
name: Ubuntu
runs-on: ubuntu-latest
if: github.ref_name == github.event.repository.default_branch
env:
IMAGE_TAG: ghcr.io/${{ github.repository }}/centos_env:latest
steps:
- name: Clone.
uses: actions/checkout@v6
with:
submodules: recursive
- name: First set up.
run: |
sudo apt update
curl -sSL https://install.python-poetry.org | python3 -
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Free up some disk space.
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
tool-cache: true
- name: Docker image build.
run: |
cd Telegram/build/docker/centos_env
poetry install
DEBUG= LTO= poetry run gen_dockerfile | DOCKER_BUILDKIT=1 docker build -t $IMAGE_TAG -
- name: Push the Docker image.
run: docker push $IMAGE_TAG