mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-16 17:56:44 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89ff7d1155 | ||
|
|
6dbb0b61b7 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "hooks",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hooks",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.5.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hooks",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume",
|
||||
"main": "",
|
||||
"directories": {
|
||||
|
||||
@@ -125,12 +125,11 @@ function generateResponseFile(
|
||||
)
|
||||
if (serviceContainers?.length) {
|
||||
response.context['services'] = serviceContainers.map(c => {
|
||||
if (!c.ports?.length) {
|
||||
return { image: c.image }
|
||||
}
|
||||
const ctxPorts: ContextPorts = {}
|
||||
for (const port of c.ports) {
|
||||
ctxPorts[port.containerPort] = port.hostPort
|
||||
if (c.ports?.length) {
|
||||
for (const port of c.ports) {
|
||||
ctxPorts[port.containerPort] = port.hostPort
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
## Features
|
||||
- Use service container entrypoint if no entrypoint is specified [#53]
|
||||
|
||||
<!-- ## Features -->
|
||||
## Bugs
|
||||
- Fixed issue caused by promise rejection in kubernetes hook [#65]
|
||||
- Fixed service container name issue when service image contains one or more `/`
|
||||
in the name [#53]
|
||||
- Fixed issue related to service container failures when no ports are specified
|
||||
[#60]
|
||||
- Allow equal signs in environment variable values [#62]
|
||||
|
||||
<!-- ## Misc
|
||||
- Ensure the response file contains ports object for service containers in k8s [#70]
|
||||
|
||||
<!-- ## Misc -->
|
||||
|
||||
Reference in New Issue
Block a user