diff OOM errors and performance #457
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yamllint disable rule:truthy rule:line-length | |
name: Update Docker Compose & helm chart on Pyproject update in Stable | |
# This will bump the infrahub docker image in the docker-compose.yml | |
# when pyproject.toml is change in the stable branch | |
on: | |
push: | |
branches: | |
- stable | |
paths: | |
- 'pyproject.toml' | |
pull_request: | |
branches: | |
- stable | |
types: | |
- closed | |
jobs: | |
update-docker-compose: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'pull_request' && github.event.pull_request.merged == true && | |
github.event.pull_request.base.ref == 'stable') | |
steps: | |
- name: "Check out repository code" | |
uses: "actions/checkout@v4" | |
with: | |
token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }} | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: "Setup environment" | |
run: | | |
pipx install poetry==1.8.5 | |
poetry config virtualenvs.prefer-active-python true | |
- name: "Install Package" | |
run: "poetry install --all-extras" | |
- name: "Check prerelease type" | |
id: release | |
run: | | |
echo is_prerelease=$(poetry run python -c "from packaging.version import Version; print(int(Version('$(poetry version -s)').is_prerelease))") >> "$GITHUB_OUTPUT" | |
echo is_devrelease=$(poetry run python -c "from packaging.version import Version; print(int(Version('$(poetry version -s)').is_devrelease))") >> "$GITHUB_OUTPUT" | |
- name: "Update Docker Env variable in docker-compose.yml file" | |
if: steps.release.outputs.is_prerelease == 0 && steps.release.outputs.is_devrelease == 0 | |
run: "poetry run invoke release.gen-config-env -u" | |
- name: "Update Infrahub Image Version in docker-compose.yml file" | |
if: steps.release.outputs.is_prerelease == 0 && steps.release.outputs.is_devrelease == 0 | |
run: "poetry run invoke release.update-docker-compose" | |
- name: "Update Versions in python_testcontainers/pyproject.toml" | |
run: "poetry run invoke release.update-test-containers" | |
- name: Commit docker-compose.yml | |
uses: github-actions-x/commit@v2.9 | |
with: | |
github-token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }} | |
push-branch: 'stable' | |
commit-message: 'chore: update docker-compose' | |
files: | | |
docker-compose.yml | |
python_testcontainers/pyproject.toml | |
name: opsmill-bot | |
email: github-bot@opsmill.com | |
rebase: true | |
- name: Checkout infrahub-helm | |
if: steps.release.outputs.is_prerelease == 0 && steps.release.outputs.is_devrelease == 0 | |
uses: actions/checkout@v4 | |
with: | |
repository: opsmill/infrahub-helm | |
path: helm | |
token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }} | |
- name: "Update AppVersion in helm/chart.yaml file" | |
if: steps.release.outputs.is_prerelease == 0 && steps.release.outputs.is_devrelease == 0 | |
run: "poetry run invoke release.update-helm-chart" | |
- name: Commit helm | |
if: steps.release.outputs.is_prerelease == 0 && steps.release.outputs.is_devrelease == 0 | |
working-directory: helm | |
run: | | |
git commit -a -m 'chore: bump appVersion' | |
git push |