Skip to content

Build

Build #43

Workflow file for this run

name: Build
on:
workflow_dispatch: {}
workflow_run:
workflows: ["Update Submodules"]
types:
- completed
permissions:
contents: write
packages: write
jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/txpipe/docs:${{ github.sha }}