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

43 lines
1.1 KiB
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/netrunner
runner-amd64: '["self-hosted","linux","amd64"]'
runner-arm64: '["self-hosted","linux","arm64"]'
runner-deploy: '["self-hosted","linux","amd64"]'
secrets: inherit
notify-universe:
needs: docker
if: startsWith(github.ref, 'refs/tags/v')
runs-on: lux-build-amd64
steps:
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.UNIVERSE_PAT }}
repository: luxfi/universe
event-type: image-published
client-payload: |
{
"service": "netrunner",
"image": "ghcr.io/luxfi/netrunner",
"tag": "${{ github.ref_name }}",
"sha": "${{ github.sha }}"
}
runner-amd64: '["self-hosted","linux","amd64"]'
runner-arm64: '["self-hosted","linux","arm64"]'
runner-deploy: '["self-hosted","linux","amd64"]'