This is an automated email from the ASF dual-hosted git repository.
yasith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new 39653aa774 update docker push script with correct image naming
39653aa774 is described below
commit 39653aa774d136947374e9527af39cfc18df41b9
Author: Yasith Jayawardana <[email protected]>
AuthorDate: Wed Aug 20 20:11:47 2025 -0400
update docker push script with correct image naming
---
.github/workflows/build-and-publish.yml | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/build-and-publish.yml
b/.github/workflows/build-and-publish.yml
index 49649c328c..3557266f9b 100644
--- a/.github/workflows/build-and-publish.yml
+++ b/.github/workflows/build-and-publish.yml
@@ -7,8 +7,9 @@ on:
workflow_dispatch:
env:
- REGISTRY: docker.io
- IMAGE_NAME: airavata
+ DOCKER_HUB_REGISTRY: docker.io
+ DOCKER_HUB_REPO: cybershuttle
+ DOCKER_HUB_IMAGE: airavata
jobs:
build-and-push:
@@ -42,7 +43,10 @@ jobs:
sudo make install
- name: Build with Maven (skip tests)
- run: mvn clean install -DskipTests
+ run: mvn -B -DskipTests clean install
+
+ - name: Set up QEMU (multi-arch)
+ uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -50,7 +54,7 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
- registry: ${{ env.REGISTRY }}
+ registry: ${{ env.DOCKER_HUB_REGISTRY }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
@@ -58,7 +62,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
- images: ${{ env.REGISTRY }}/${{ secrets.DOCKER_HUB_USERNAME }}/${{
env.IMAGE_NAME }}
+ images: ${{ env.DOCKER_HUB_REGISTRY }}/${{ env.DOCKER_HUB_REPO
}}/${{ env.DOCKER_HUB_IMAGE }}
tags: |
type=ref,event=branch
type=ref,event=pr
@@ -67,6 +71,7 @@ jobs:
type=sha,prefix={{branch}}-
- name: Build and push Docker image
+ id: buildpush
uses: docker/build-push-action@v5
with:
context: .
@@ -77,6 +82,3 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
-
- - name: Image digest
- run: echo ${{ steps.meta.outputs.tags }}