Merge pull request #296 from Venkat-Kunaparaju/secondaryip-fix #280
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: Build and Push | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Docker Buildx | |
| run: | | |
| docker buildx create --use | |
| - name: Log in to GitHub Container Registry | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Build and Push Multiarch Base Image to ghcr.io | |
| run: | | |
| docker buildx build \ | |
| --file ./Containerfile \ | |
| --target base \ | |
| --platform linux/arm64,linux/amd64 \ | |
| --tag ghcr.io/ovn-kubernetes/kubernetes-traffic-flow-tests:latest \ | |
| --push \ | |
| . | |
| - name: Build and Push Multiarch RDMA Image to ghcr.io | |
| run: | | |
| docker buildx build \ | |
| --file ./Containerfile \ | |
| --target rdma \ | |
| --platform linux/arm64,linux/amd64 \ | |
| --tag ghcr.io/ovn-kubernetes/kubernetes-traffic-flow-tests:rdma \ | |
| --push \ | |
| . |