woodpecker/pipeline
Thomas Anderson de53b906e8
Add ports into pipeline backend step model (#2656)
Closes #2655.


[Pipeline](https://woodpecker-ci.org/docs/next/usage/services#complete-pipeline-example):
```yaml
services:
  database:
    image: mysql
    environment:
      - MYSQL_DATABASE=test
      - MYSQL_ROOT_PASSWORD=example
    ports:
      - 3306

steps:
  get-version:
    image: ubuntu
    commands:
      - ( apt update && apt dist-upgrade -y && apt install -y mysql-client 2>&1 )> /dev/null
      - sleep 60s # need to wait for mysql-server init
      - echo 'SHOW VARIABLES LIKE "version"' | mysql -uroot -hdatabase test -pexample
```

Service:
```yaml
apiVersion: v1
kind: Service
metadata:
  name: wp-01hdq6gbkw1mn6k1655fs3rntf-0-services-0
  namespace: woodpecker-runtime
  ...
  selfLink: >-
    /api/v1/namespaces/woodpecker-runtime/services/wp-01hdq6gbkw1mn6k1655fs3rntf-0-services-0
status:
  loadBalancer: {}
spec:
  ports:
    - protocol: TCP
      port: 3306
      targetPort: 3306
  selector:
    step: database
  clusterIP: 10.43.180.120
  clusterIPs:
    - 10.43.180.120
  type: ClusterIP
  sessionAffinity: None
  ipFamilies:
    - IPv4
  ipFamilyPolicy: SingleStack
  internalTrafficPolicy: Cluster
```
2023-11-02 04:12:41 +01:00
..
backend Add ports into pipeline backend step model (#2656) 2023-11-02 04:12:41 +01:00
frontend Add ports into pipeline backend step model (#2656) 2023-11-02 04:12:41 +01:00
multipart Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
rpc Unregister stateless agents from server on termination (#2606) 2023-11-02 01:53:47 +02:00
samples pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00
schema Add prettier (#2600) 2023-10-24 14:42:05 +02:00
shared Do not sanitzie secrets with 3 or less chars (#2680) 2023-10-31 19:44:03 +01:00
error.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
error_test.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
logger.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
option.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
pipeline.go Destroy steps after they are done (#2681) 2023-11-01 09:35:11 +01:00
stepBuilder.go Unique status for matrix (#2695) 2023-11-01 17:28:02 +01:00
stepBuilder_test.go Refactor pipeline parsing and forge refreshing (#2527) 2023-10-08 14:05:06 +02:00
tracer.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00