mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
43 lines
1.1 KiB
YAML
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"]'
|