Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta50 committed Sep 14, 2024
1 parent e3e3adf commit 31ed6a6
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ovs-multiarch-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,15 @@ jobs:
PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
BUILD_ARGS: ""
PLATFORMS: linux/amd64
TAG: ${{ github.head_ref || github.ref_name }}
TAG: ${{ github.head_ref || github.ref_name }}
PUSH: true
runs-on: ubuntu-latest
steps:
- name: Set TAG
run: |
- name: Set env
run:
TAG=${{ env.TAG }}
if [[ $? -ne 0 ]]
then
TAG=${TAG//\/}
echo "in if block"
#$TAG | sed 's/[^a-zA-Z0-9_.]/-/g'
else
TAG=${TAG//\/}
#TAG=$(echo $TAG | sed 's/-.*//')-pmk
fi
echo $TAG
echo "{TESTTAG}=${TAG//\/}" >> $GITHUB_ENV
echo $TESTTAG
- uses: actions/checkout@v3

- name: Setup Docker BuildX
Expand All @@ -54,7 +45,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: hostplumber/pkg/ovs-docker
tags: docker.io/platform9/openvswitch:${{ env.TAG }}
tags: docker.io/platform9/openvswitch:${{ env.TESTTAG }}
push: ${{ env.PUSH }}
build-args: ${{ env.BUILD_ARGS}}
platforms: ${{ env.PLATFORMS }}

0 comments on commit 31ed6a6

Please sign in to comment.