Files
node/.github/workflows/docker.yml
T

39 lines
896 B
YAML

name: Docker
on:
workflow_dispatch:
push:
branches: [main, dev, test]
tags: ['v*']
permissions:
contents: read
packages: write
jobs:
docker:
uses: hanzoai/.github/.github/workflows/docker-build.yml@main
with:
image: ghcr.io/luxfi/node
runner-amd64: lux-build-linux-amd64
runner-arm64: lux-build-arm64
secrets: inherit
notify-universe:
needs: docker
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.UNIVERSE_PAT }}
repository: luxfi/universe
event-type: image-published
client-payload: |
{
"service": "node",
"image": "ghcr.io/luxfi/node",
"tag": "${{ github.ref_name }}",
"sha": "${{ github.sha }}"
}