Skip to content

Commit

Permalink
Restore dynamic caller action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket36 authored Apr 22, 2024
1 parent c5a2b97 commit 89624e3
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/ovs-multiarch-build-and-push.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -36,34 +29,34 @@ 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

- 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 }}

0 comments on commit 89624e3

Please sign in to comment.