|
|
@ -29,6 +29,7 @@ jobs:
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Log in to DockerHub
|
|
|
|
- name: Log in to DockerHub
|
|
|
|
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
uses: docker/login-action@v3.1.0
|
|
|
|
uses: docker/login-action@v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
username: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
@ -38,8 +39,8 @@ jobs:
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
tags: projecthami/hami-webui-fe-oss:${{ steps.branch-names.outputs.current_branch || steps.branch-names.outputs.tag }}
|
|
|
|
tags: projecthami/hami-webui-fe-oss:${{ steps.branch-names.outputs.tag || steps.branch-names.outputs.current_branch == 'main' && 'main' || format('pr-{0}', github.run_number) }}
|
|
|
|
|
|
|
|
|
|
|
|
build-and-push-backend:
|
|
|
|
build-and-push-backend:
|
|
|
|
name: Build and Push Backend Image
|
|
|
|
name: Build and Push Backend Image
|
|
|
@ -57,6 +58,7 @@ jobs:
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Log in to DockerHub
|
|
|
|
- name: Log in to DockerHub
|
|
|
|
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
uses: docker/login-action@v3.1.0
|
|
|
|
uses: docker/login-action@v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
username: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
@ -67,5 +69,5 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: ./server
|
|
|
|
context: ./server
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
tags: projecthami/hami-webui-be-oss:${{ steps.branch-names.outputs.current_branch || steps.branch-names.outputs.tag }}
|
|
|
|
tags: projecthami/hami-webui-be-oss:${{ steps.branch-names.outputs.tag || steps.branch-names.outputs.current_branch == 'main' && 'main' || format('pr-{0}', github.run_number) }}
|
|
|
|