@@ -821,6 +821,40 @@ describe('push', () => {
821821 "org.opencontainers.image.version=mytag-master"
822822 ] ,
823823 undefined
824+ ] ,
825+ [
826+ 'push22' ,
827+ 'event_push_dev.env' ,
828+ {
829+ images : [ 'org/app' ] ,
830+ tags : [
831+ `type=edge,branch=master` ,
832+ `type=sha,format=long` ,
833+ `type=raw,value=notdefbranch,enable={{is_not_default_branch}}`
834+ ] ,
835+ } as Inputs ,
836+ {
837+ main : 'notdefbranch' ,
838+ partial : [
839+ 'sha-860c1904a1ce19322e91ac35af1ab07466440c37'
840+ ] ,
841+ latest : false
842+ } as Version ,
843+ [
844+ "org/app:notdefbranch" ,
845+ "org/app:sha-860c1904a1ce19322e91ac35af1ab07466440c37"
846+ ] ,
847+ [
848+ "org.opencontainers.image.created=2020-01-10T00:30:00.000Z" ,
849+ "org.opencontainers.image.description=This your first repo!" ,
850+ "org.opencontainers.image.licenses=MIT" ,
851+ "org.opencontainers.image.revision=860c1904a1ce19322e91ac35af1ab07466440c37" ,
852+ "org.opencontainers.image.source=https://github.com/octocat/Hello-World" ,
853+ "org.opencontainers.image.title=Hello-World" ,
854+ "org.opencontainers.image.url=https://github.com/octocat/Hello-World" ,
855+ "org.opencontainers.image.version=notdefbranch"
856+ ] ,
857+ undefined
824858 ]
825859 ] ) ( 'given %p with %p event' , tagsLabelsTest ) ;
826860} ) ;
0 commit comments