Skip to content

Merge pull request #187 from thom311/th/ktoolbox-update #183

Merge pull request #187 from thom311/th/ktoolbox-update

Merge pull request #187 from thom311/th/ktoolbox-update #183

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 Image to ghcr.io
run: |
docker buildx build \
--file ./Containerfile \
--platform linux/arm64,linux/amd64 \
--tag ghcr.io/ovn-kubernetes/kubernetes-traffic-flow-tests:latest \
--push \
.