Woodpecker is a community fork of the Drone CI system.
Find a file
Elias bffc9c8ff8
fix: can't run multiple services on k8s (#3395)
Fix Issue: https://github.com/woodpecker-ci/woodpecker/issues/3288

The way the pod service starts up makes it impossible to run two or more
pipelines at the same time when we have a service section.

The idea is to set the name of the service in the same way we did for
the pod name.

Pipeline: 

```yaml

services:
  mydb:
    image: mysql
    environment:
      - MYSQL_DATABASE=test
      - MYSQL_ROOT_PASSWORD=example
    ports:
      - 3306/tcp
steps:
  get-version:
    image: ubuntu
    commands:
      - ( apt update && apt dist-upgrade -y && apt install -y mysql-client 2>&1 )> /dev/null
      - sleep 30s # need to wait for mysql-server init
      - echo 'SHOW VARIABLES LIKE "version"' | mysql -uroot -hmydb test -pexample
```

Running more than one pipeline result:


![image](https://github.com/woodpecker-ci/woodpecker/assets/22245125/e512309f-0d1e-4125-bab9-2357a710fedd)

---------

Co-authored-by: elias.souza <elias.souza@quintoandar.com.br>
2024-02-17 12:30:06 +01:00
.github Apply documentation/ui label to corresponding renovate updates (#3400) 2024-02-17 10:35:23 +01:00
.vscode Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
.woodpecker chore(deps): update docker.io/techknowlogick/xgo docker tag to go-1.22.0 (#3392) 2024-02-16 17:32:41 +01:00
agent Clean up models (#3228) 2024-01-22 07:56:18 +01:00
cli Fix backend detection (#3353) 2024-02-09 00:04:43 +01:00
cmd Remove empty strings from slice before parsing agent config (#3387) 2024-02-14 23:22:31 +01:00
contrib/woodpecker-test-repo/.woodpecker Cleanups + prefer .yaml (#3069) 2024-01-11 18:43:54 +01:00
docker chore(deps): update docker.io/golang docker tag (#3391) 2024-02-16 16:40:46 +01:00
docs Add link checking (#3371) 2024-02-12 15:00:33 +01:00
nfpm build: fix nfpm path for server binary (#3246) 2024-01-21 23:08:53 +01:00
pipeline fix: can't run multiple services on k8s (#3395) 2024-02-17 12:30:06 +01:00
server Fix pipeline restart (#3402) 2024-02-17 10:19:28 +01:00
shared Remove empty strings from slice before parsing agent config (#3387) 2024-02-14 23:22:31 +01:00
version Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
web chore(deps): update dependency eslint-plugin-simple-import-sort to v12 (#3396) 2024-02-17 09:37:42 +01:00
woodpecker-go Fix linter (#3354) 2024-02-08 22:49:07 +01:00
.cspell.json Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
.ecrc Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
.editorconfig Use editorconfig-checker (#982) 2022-06-17 12:03:34 +02:00
.gitattributes Fix "check_swagger" step (#2024) 2023-07-20 22:12:32 +02:00
.gitignore Use dag in ci config (#3010) 2023-12-28 16:39:14 +01:00
.gitpod.yml Fix Gitpod: Gitea auth token creation (#3299) 2024-01-30 18:39:59 +01:00
.golangci.yaml Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
.hadolint.yaml Cleanups + prefer .yaml (#3069) 2024-01-11 18:43:54 +01:00
.markdownlint.yaml Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#3329) 2024-02-08 17:19:01 +01:00
.prettierignore Do not run prettier with pre-commit (#3196) 2024-01-14 21:14:00 +01:00
.prettierrc.json Remove old files (#3077) 2023-12-30 15:10:31 +01:00
.yamllint.yaml Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
CHANGELOG.md 🎉 Release 2.3.0 (#3249) 2024-01-31 17:41:26 +01:00
docker-compose.example.yaml Cleanups + prefer .yaml (#3069) 2024-01-11 18:43:54 +01:00
docker-compose.gitpod.yaml Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
go.mod fix(deps): update module github.com/google/go-github/v58 to v59 (#3398) 2024-02-17 09:04:33 +01:00
go.sum fix(deps): update module github.com/google/go-github/v58 to v59 (#3398) 2024-02-17 09:04:33 +01:00
LICENSE Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
Makefile Update UI building in Makefile (#3250) 2024-01-22 09:10:28 +02:00
README.md docs: fix contributions link (#3363) 2024-02-10 07:51:13 +01:00
release-config.ts Add release helper (#1976) 2023-09-07 17:17:17 +02:00

Woodpecker

Woodpecker


Build Status Code coverage Translation status Discord chat Matrix space Go Report Card go reference GitHub release Docker pulls License: Apache-2.0 OpenSSF best practices pre-commit.ci


Woodpecker is a simple yet powerful CI/CD engine with great extensibility.

woodpecker

🫶 Support

Please consider donating and become a backer. 🙏 [Become a backer]

Open Collective backers

📖 Documentation

https://woodpecker-ci.org/

Contribute

See Contributing Guide

Open in Gitpod

📣 Translate

We use an own Weblate instance at translate.woodpecker-ci.org.

Translation status

👋 Who uses Woodpecker?

Woodpecker is used by itself multiple well-known companies, organizations like Codeberg, hobbyist and many others.

Leave a comment if you're using it as well.

Also consider using the topic WoodpeckerCI in your repository, so others can learn from your config and use the hashtag #WoodpeckerCI when talking about the project on social media!

Here are some places where people mention Woodpecker:

Stars over time

Stargazers over time

License

Woodpecker is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.

Files under the docs/ folder are licensed under Creative Commons Attribution-ShareAlike 4.0 International Public License.