manifests: Add readiness probe #124
This file contains hidden or 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
| name: Push container image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*.*.*' | |
| env: | |
| image-push-owner: 'k8snetworkplumbingwg' | |
| BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/s390x | |
| jobs: | |
| push-image: | |
| name: Image push | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Version Check | |
| run: | | |
| echo "git_commit_hash=$(git describe --no-match --always --abbrev=40 --dirty)" >> $GITHUB_ENV | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Login to Container Registry | |
| if: github.repository_owner == 'k8snetworkplumbingwg' | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Push container image | |
| if: github.repository_owner == 'k8snetworkplumbingwg' | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}:latest | |
| file: images/Dockerfile | |
| platforms: ${{ env.BUILD_PLATFORMS }} | |
| build-args: | | |
| git_sha=${{ env.git_commit_hash }} | |
| - name: Push stable container image | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} | |
| file: images/Dockerfile | |
| platforms: ${{ env.BUILD_PLATFORMS }} | |
| build-args: | | |
| git_sha=${{ env.git_commit_hash }} | |
| - name: Install the j2 dependency | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| pip3 install --user --upgrade jinjanator | |
| j2 --version | |
| - name: Template release manifests | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: IMAGE_TAG=${{ github.ref_name }} make manifests | |
| - name: Release the kraken | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| manifests/crio-dynamic-networks-controller.yaml | |
| manifests/dynamic-networks-controller.yaml |