Skip to content

Merge pull request #156 from flavio-fernandes/use_ghcr.io #22

Merge pull request #156 from flavio-fernandes/use_ghcr.io

Merge pull request #156 from flavio-fernandes/use_ghcr.io #22

name: Build and Push
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
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/${{ github.repository_owner }}/ocp-traffic-flow-tests:pr_test \
--push \
.