blob: ab194b9fe2cd1ea1fff3b0fb2c605982a19e65f1 [file] [log] [blame]
Davide Pesavento4b3aa4f2024-04-06 22:00:10 -04001name: Docker
Varun Patile58bab22023-11-18 13:09:13 -08002on:
3 push:
Davide Pesavento84667172024-04-14 14:00:44 -04004 tags:
Davide Pesaventoc4f8bd12024-05-10 22:16:02 -04005 - 'ndn-cxx-[0-9]+*'
Davide Pesavento84667172024-04-14 14:00:44 -04006 schedule:
7 # twice a month
8 - cron: '20 4 5,20 * *'
Varun Patile58bab22023-11-18 13:09:13 -08009 workflow_dispatch:
10
Davide Pesavento6d4a6532023-11-18 17:05:33 -050011permissions:
Davide Pesavento7a4697d2024-05-08 14:08:02 -040012 attestations: write
Davide Pesavento4b3aa4f2024-04-06 22:00:10 -040013 id-token: write
Davide Pesavento7a4697d2024-05-08 14:08:02 -040014 packages: write
Varun Patile58bab22023-11-18 13:09:13 -080015
16jobs:
Davide Pesavento4b3aa4f2024-04-06 22:00:10 -040017 ndn-cxx-build:
18 uses: named-data/actions/.github/workflows/docker-image.yml@v1
19 with:
20 name: ndn-cxx-build
21 target: build
22 ndn-cxx-runtime:
23 needs: ndn-cxx-build
24 uses: named-data/actions/.github/workflows/docker-image.yml@v1
25 with:
26 name: ndn-cxx-runtime
27 target: runtime
28 contexts: build=docker-image://${{ needs.ndn-cxx-build.outputs.image }}