diff --git a/.github/workflows/ovs-multiarch-build-and-push.yml b/.github/workflows/ovs-multiarch-build-and-push.yml index d012443c..44644467 100644 --- a/.github/workflows/ovs-multiarch-build-and-push.yml +++ b/.github/workflows/ovs-multiarch-build-and-push.yml @@ -1,13 +1,6 @@ --- -name: Static Checks +name: docker on: - push: - branches: - - private/shweta/ovs-multi-arch - pull_request: - branches: - - private/shweta/ovs-multi-arch - workflow_dispatch: workflow_call: inputs: image_name: @@ -36,19 +29,19 @@ on: required: true registry_password: required: true - + jobs: buildx: - runs-on: 'ubuntu-latest' + runs-on: ${{ inputs.runs_on }} steps: - uses: actions/checkout@v3 - name: Setup Docker BuildX uses: docker/setup-buildx-action@v1 - + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - + # setup Docker buld action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -56,14 +49,14 @@ jobs: - name: Login to the Docker Registry uses: docker/login-action@v1 with: - username: shwetachavan20 - password: 50$@Shweta - + username: ${{ secrets.registry_username }} + password: ${{ secrets.registry_password }} + - name: Build/Push image to Docker Container Registry uses: docker/build-push-action@v3 with: - context: hostplumber/pkg/ovs-docker - tags: shwetachavan20/openvswitch:test1 - push: true - build-args: "" - platfiorms: "linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x" + context: ${{ inputs.context }} + tags: ${{ secrets.registry_username }}/${{ inputs.image_name }}:${{ inputs.tag }} + push: ${{ inputs.push }} + build-args: ${{ inputs.build_args}} + platforms: ${{ inputs.platforms }}