Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Modassar Rana <modassar.rana@ibm.com>
  • Loading branch information
modassarrana89 authored Apr 15, 2024
1 parent aba4a3d commit 293e581
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Build
on:
pull_request:
branches:
- main
- test
- "release-[0-9].[0-9]+"
paths-ignore:
- "**.md"
push:
branches:
- main
- test
- "release-[0-9].[0-9]+"
tags:
- "v*"
Expand Down Expand Up @@ -55,8 +55,8 @@ jobs:
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
username: ${{ secrets.DOCKER_USER || 'modassarrana123'}}
password: ${{ secrets.DOCKER_ACCESS_TOKEN || 'Zaqzaq@123'}}

- name: Export docker build args
run: |
Expand All @@ -70,7 +70,7 @@ jobs:
[ "$VERSION" == "merge" ] && VERSION=$(echo "${{ github.ref }}" | sed -e 's,refs/pull/\(.*\)/merge,pr-\1,')
# Use Docker `latest` tag convention
[ "$VERSION" == "main" ] && VERSION=latest
[ "$VERSION" == "test" ] && VERSION=latest
echo "GIT_COMMIT=$GIT_COMMIT" >> $GITHUB_ENV
echo "BUILD_ID=$BUILD_ID" >> $GITHUB_ENV
Expand All @@ -83,7 +83,7 @@ jobs:
uses: docker/build-push-action@v4
with:
# for linux/s390x, maven errors due to missing io.grpc:protoc-gen-grpc-java:exe:linux-s390_64:1.51.1
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x
target: runtime
push: ${{ github.event_name == 'push' }}
tags: ${{ env.IMAGE_NAME }}:${{ env.VERSION }}
Expand Down

0 comments on commit 293e581

Please sign in to comment.