Bump the k8s-libs group with 3 updates (#54) #140
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: Docker publish | |
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| # Publish semver tags as releases. | |
| tags: [ 'v*.*.*' ] | |
| pull_request: | |
| branches: [ "main" ] | |
| defaults: | |
| run: | |
| shell: 'bash -Eeuo pipefail -x {0}' | |
| jobs: | |
| generate-jobs: | |
| name: customlimitrange-manager-build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - | |
| name: customlimitrange-manager | |
| image: dongjiang1989/customlimitrange-manager:latest | |
| file: ./hack/build/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - | |
| name: Login to Registry | |
| uses: docker/[email protected] | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - | |
| name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| file: ${{ matrix.file }} | |
| platforms: ${{ matrix.platforms }} | |
| push: true | |
| tags: ${{ matrix.image }} | |
| - name: Test ${{ matrix.name }} | |
| run: | | |
| docker pull ${{ matrix.image}} | |
| docker image inspect ${{ matrix.image}} |