File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,20 @@ if [ -n "$localmode" ]; then
52
52
attestFlags=" "
53
53
fi
54
54
55
+ if [ -z " $localmode " ] && [ " $GITHUB_ACTIONS " = " true" ]; then
56
+ outputFlag=" ${outputFlag} ,annotation.org.opencontainers.image.title=BuildKit"
57
+ if [ -n " $GITHUB_SHA " ]; then
58
+ outputFlag=" ${outputFlag} ,annotation.org.opencontainers.image.revision=$GITHUB_SHA "
59
+ fi
60
+ if [ -n " $GITHUB_REPOSITORY " ] && [ -n " $GITHUB_SERVER_URL " ]; then
61
+ outputFlag=" ${outputFlag} ,annotation.org.opencontainers.image.source=$GITHUB_SERVER_URL /$GITHUB_REPOSITORY "
62
+ outputFlag=" ${outputFlag} ,annotation.org.opencontainers.image.url=$GITHUB_SERVER_URL /$GITHUB_REPOSITORY "
63
+ fi
64
+ if [ -n " $versionTag " ]; then
65
+ outputFlag=" ${outputFlag} ,annotation.org.opencontainers.image.version=$versionTag "
66
+ fi
67
+ fi
68
+
55
69
targetFlag=" "
56
70
if [ -n " $TARGET " ]; then
57
71
targetFlag=" --target=$TARGET "
You can’t perform that action at this time.
0 commit comments