Skip to content

Commit

Permalink
Adding mutli-arch to front end build
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Jul 12, 2024
1 parent 9cb1c84 commit 27ac773
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 0 additions & 3 deletions github/java-microservice/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,6 @@ runs:
if: ${{ inputs.docker_build == 'true' }}
run: |
docker buildx build -f src/main/docker/Dockerfile.legacy-jar -t octopussamples/octopub-${{ inputs.service_directory }}-mysql:${{ steps.determine_version.outputs.semVer }} -t octopussamples/octopub-${{ inputs.service_directory }}-mysql:latest --platform=linux/amd64,linux/arm64 --push .
# docker push octopussamples/octopub-${{ inputs.service_directory }}-mysql:${{ steps.determine_version.outputs.semVer }}
# docker tag octopussamples/octopub-${{ inputs.service_directory }}-mysql:${{ steps.determine_version.outputs.semVer }} octopussamples/octopub-${{ inputs.service_directory }}-mysql:latest
# docker push octopussamples/octopub-${{ inputs.service_directory }}-mysql:latest
shell: bash
working-directory: java/${{ inputs.service_directory }}

Expand Down
18 changes: 14 additions & 4 deletions github/js-frontend/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,27 @@ runs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

# The Docker image is built and pushed.
# - name: Build, tag, and push image to Dockerhub
# run: |
# docker build -t octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} .
# docker push octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }}
# docker tag octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} octopussamples/octopub-frontend:latest
# docker push octopussamples/octopub-frontend:latest
# shell: bash
# working-directory: js/frontend

# The MySQL Docker image is built and pushed.
- name: Build, tag, and push image to Dockerhub
run: |
docker build -t octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} .
docker push octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }}
docker tag octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} octopussamples/octopub-frontend:latest
docker push octopussamples/octopub-frontend:latest
docker buildx build -t octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} -t octopussamples/octopub-frontend:${{ steps.determine_version.outputs.semVer }} octopussamples/octopub-frontend:latest --platform=linux/amd64,linux/arm64 --push .
shell: bash
working-directory: js/frontend


- name: Login to GHCR
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 27ac773

Please sign in to comment.