@@ -1578,6 +1578,72 @@ describe('pr', () => {
1578
1578
"org.opencontainers.image.licenses=MIT"
1579
1579
]
1580
1580
] ,
1581
+ [
1582
+ 'pr05' ,
1583
+ 'event_pull_request.env' ,
1584
+ {
1585
+ images : [ 'org/app' , 'ghcr.io/user/app' ] ,
1586
+ tags : [
1587
+ `type=ref,event=pr`
1588
+ ] ,
1589
+ flavor : [
1590
+ `prefix=glo-` ,
1591
+ `suffix=-bal`
1592
+ ]
1593
+ } as Inputs ,
1594
+ {
1595
+ main : 'pr-2-bal' ,
1596
+ partial : [ ] ,
1597
+ latest : false
1598
+ } as Version ,
1599
+ [
1600
+ 'org/app:pr-2-bal' ,
1601
+ 'ghcr.io/user/app:pr-2-bal'
1602
+ ] ,
1603
+ [
1604
+ "org.opencontainers.image.title=Hello-World" ,
1605
+ "org.opencontainers.image.description=This your first repo!" ,
1606
+ "org.opencontainers.image.url=https://github.com/octocat/Hello-World" ,
1607
+ "org.opencontainers.image.source=https://github.com/octocat/Hello-World" ,
1608
+ "org.opencontainers.image.version=pr-2-bal" ,
1609
+ "org.opencontainers.image.created=2020-01-10T00:30:00.000Z" ,
1610
+ "org.opencontainers.image.revision=1e9249f05bfc090e0688b8fb9c1b347586add504" ,
1611
+ "org.opencontainers.image.licenses=MIT"
1612
+ ]
1613
+ ] ,
1614
+ [
1615
+ 'pr06' ,
1616
+ 'event_pull_request.env' ,
1617
+ {
1618
+ images : [ 'org/app' , 'ghcr.io/user/app' ] ,
1619
+ tags : [
1620
+ `type=ref,event=pr,prefix=`
1621
+ ] ,
1622
+ flavor : [
1623
+ `prefix=glo-` ,
1624
+ `suffix=-bal`
1625
+ ]
1626
+ } as Inputs ,
1627
+ {
1628
+ main : 'glo-2-bal' ,
1629
+ partial : [ ] ,
1630
+ latest : false
1631
+ } as Version ,
1632
+ [
1633
+ 'org/app:glo-2-bal' ,
1634
+ 'ghcr.io/user/app:glo-2-bal'
1635
+ ] ,
1636
+ [
1637
+ "org.opencontainers.image.title=Hello-World" ,
1638
+ "org.opencontainers.image.description=This your first repo!" ,
1639
+ "org.opencontainers.image.url=https://github.com/octocat/Hello-World" ,
1640
+ "org.opencontainers.image.source=https://github.com/octocat/Hello-World" ,
1641
+ "org.opencontainers.image.version=glo-2-bal" ,
1642
+ "org.opencontainers.image.created=2020-01-10T00:30:00.000Z" ,
1643
+ "org.opencontainers.image.revision=1e9249f05bfc090e0688b8fb9c1b347586add504" ,
1644
+ "org.opencontainers.image.licenses=MIT"
1645
+ ]
1646
+ ]
1581
1647
] ) ( 'given %p with %p event' , tagsLabelsTest ) ;
1582
1648
} ) ;
1583
1649
@@ -1758,6 +1824,39 @@ describe('schedule', () => {
1758
1824
"org.opencontainers.image.licenses=MIT"
1759
1825
]
1760
1826
] ,
1827
+ [
1828
+ 'schedule07' ,
1829
+ 'event_schedule.env' ,
1830
+ {
1831
+ images : [ 'org/app' , 'ghcr.io/user/app' ] ,
1832
+ tags : [
1833
+ `type=schedule` ,
1834
+ ] ,
1835
+ flavor : [
1836
+ `prefix=glo-` ,
1837
+ `suffix=-bal`
1838
+ ]
1839
+ } as Inputs ,
1840
+ {
1841
+ main : 'glo-nightly-bal' ,
1842
+ partial : [ ] ,
1843
+ latest : false
1844
+ } as Version ,
1845
+ [
1846
+ 'org/app:glo-nightly-bal' ,
1847
+ 'ghcr.io/user/app:glo-nightly-bal'
1848
+ ] ,
1849
+ [
1850
+ "org.opencontainers.image.title=Hello-World" ,
1851
+ "org.opencontainers.image.description=This your first repo!" ,
1852
+ "org.opencontainers.image.url=https://github.com/octocat/Hello-World" ,
1853
+ "org.opencontainers.image.source=https://github.com/octocat/Hello-World" ,
1854
+ "org.opencontainers.image.version=glo-nightly-bal" ,
1855
+ "org.opencontainers.image.created=2020-01-10T00:30:00.000Z" ,
1856
+ "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071" ,
1857
+ "org.opencontainers.image.licenses=MIT"
1858
+ ]
1859
+ ] ,
1761
1860
] ) ( 'given %p with %p event' , tagsLabelsTest ) ;
1762
1861
} ) ;
1763
1862
0 commit comments