build(deps): bump actions/checkout from 4 to 6 #90
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-build | |
| on: | |
| pull_request: | |
| branches: [ '*' ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: test and build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: ["1.23"] | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: copy volume-replication-operator repo in go src | |
| run: | | |
| mkdir -p /home/runner/go/src/github.com/csi-addons | |
| cp -r /home/runner/work/volume-replication-operator/volume-replication-operator /home/runner/go/src/github.com/csi-addons | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3.11.1 | |
| - name: run tests and build docker image | |
| working-directory: "/home/runner/go/src/github.com/csi-addons/volume-replication-operator" | |
| env: | |
| GOPATH: /home/runner/go | |
| run: | | |
| export PATH=$PATH:$GOPATH/bin | |
| export VERSION="2.3.2" | |
| wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v"$VERSION"/kubebuilder_"$VERSION"_linux_amd64.tar.gz | |
| tar -zxvf kubebuilder_"$VERSION"_linux_amd64.tar.gz | |
| export KUBEBUILDER_ASSETS="$(pwd)/kubebuilder_"$VERSION"_linux_amd64/bin" | |
| make dockerx-build-multi-arch |