diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8fe7e95..90029fe7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 diff --git a/Dockerfile b/Dockerfile index d08a04c1..9e90f338 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/src/kubernetes_validate/version.py b/src/kubernetes_validate/version.py index 01eb91ea..4f36c23b 100644 --- a/src/kubernetes_validate/version.py +++ b/src/kubernetes_validate/version.py @@ -1 +1 @@ -__version__ = '1.34.0' +__version__ = '1.34.1'