Skip to content

ton-docker-ctrl testnet #206

ton-docker-ctrl testnet

ton-docker-ctrl testnet #206

name: ton-docker-ctrl testnet
on:
workflow_dispatch:
push:
branches:
- testnet
schedule:
# Run every day at midnight UTC
- cron: '0 0 * * *'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
ref: testnet
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
context: ./
build-args: |
TON_BRANCH=testnet
GLOBAL_CONFIG_URL=https://ton.org/testnet-global.config.json
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testnet