Commit 0192482
feat: Parameterized DOCKER_METADATA_PR_HEAD_SHA to allow for PR-HEAD tagging (#41)
* Parameterized DOCKER_METADATA_PR_HEAD_SHA to allow for PR-HEAD tagging
By default, Github Action uses merge commits during PR events for the
(referenced via the `github.sha` variable). Some users find this
challenging, since the merge commit contains code from the target branch,
which is troublesome for long-running branches, merge-conflicts, and
a hotfix workflow for deploying one-off containers.
This allows users to configure docker metadata-action to compute the SHA
tags appropriately. Unfortunately the metadata-action does not compute
based on a checkout action of the code, so we have to tell it to use
the correct event SHA explicitly with this environment variable.
See https://github.com/docker/metadata-action#environment-variables
* Fix the datatype for the linter
Co-authored-by: Dan Miller <[email protected]>
---------
Co-authored-by: Nathanael Beisiegel <[email protected]>
Co-authored-by: Dan Miller <[email protected]>1 parent 4bf4c9a commit 0192482
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| |||
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
111 | | - | |
| 123 | + | |
112 | 124 | | |
113 | 125 | | |
114 | 126 | | |
| |||
133 | 145 | | |
134 | 146 | | |
135 | 147 | | |
136 | | - | |
| 148 | + | |
137 | 149 | | |
138 | 150 | | |
139 | 151 | | |
| |||
0 commit comments