Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,32 @@ on:
- 'gh-action-test-*'

jobs:
pypi:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/kubernetes-validate
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build pypi package
run: |
python -m pip install build twine && python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

docker:
runs-on: ubuntu-latest
needs: pypi
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@master
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: get version
Expand All @@ -28,19 +48,3 @@ jobs:
tags: ghcr.io/${{github.repository}}:${{github.ref_name}}
labels: org.opencontainers.image.source=https://github.com/${{github.repository}}

pypi:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/kubernetes-validate
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build pypi package
run: |
python -m pip install build twine && python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ARG VERSION
RUN apk add sed
COPY entrypoint.sh /entrypoint.sh

RUN pip install kubernetes-validate==$(VERSION)
RUN pip install kubernetes-validate==${VERSION}

ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion src/kubernetes_validate/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.34.0'
__version__ = '1.34.1'