Merge pull request #186 from thom311/th/skip-deprecated-aliases-for-t… #182
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 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 \ | |
. |