Skip to content

Commit

Permalink
Retry building only ui with scope set
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
  • Loading branch information
acuarica committed Jun 12, 2024
1 parent fbe2f68 commit 5c9714a
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,46 +83,46 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}/ui:${{env.TAG}}

- name: Build and push SERVER image
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
with:
cache-from: type=gha,scope=build-server
cache-to: type=gha,mode=max,scope=build-server

context: ./sourcify

# The `scripts` context is used to `COPY` the reset network script into the `server` container.
# Use `additional_contexts` to access the `scripts` folder outside main context.
# See https://docs.docker.com/compose/compose-file/build/#additional_contexts for more details.
build-contexts: |
scripts=./scripts
# The `Dockerfile.server` used here is basically the same as the one provided by Sourcify.
# It adds instructions to include the reset network script into the container.
file: ./Dockerfile.server
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}/server:${{env.TAG}}

- name: Build and Push REPOSITORY Image
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
with:
cache-from: type=gha,scope=build-repository
cache-to: type=gha,mode=max,scope=build-repository

context: ./h5ai-nginx

# From https://github.com/ethereum/sourcify/issues/1385
#
# The `repository` service provides a link to open each verified contract in Remix.
# However, for public self-hosted Sourcify instances (like in the case of Hedera) the _Open repo in Remix_ link does not work,
# given the Remix plugin only fetches contracts from https://repo.sourcify.dev.
#
# When `HIDE_OPEN_IN_REMIX` is set to 1, a patch to remove the link is applied.
# See https://github.com/sourcifyeth/h5ai-nginx/pull/5 for more details.
build-args: |
HIDE_OPEN_IN_REMIX=1
file: ./h5ai-nginx/Dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}/repository:${{env.TAG}}
# - name: Build and push SERVER image
# uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
# with:
# cache-from: type=gha,scope=build-server
# cache-to: type=gha,mode=max,scope=build-server

# context: ./sourcify

# # The `scripts` context is used to `COPY` the reset network script into the `server` container.
# # Use `additional_contexts` to access the `scripts` folder outside main context.
# # See https://docs.docker.com/compose/compose-file/build/#additional_contexts for more details.
# build-contexts: |
# scripts=./scripts

# # The `Dockerfile.server` used here is basically the same as the one provided by Sourcify.
# # It adds instructions to include the reset network script into the container.
# file: ./Dockerfile.server
# platforms: linux/amd64, linux/arm64
# push: true
# tags: ${{ env.REGISTRY }}/${{ github.repository }}/server:${{env.TAG}}

# - name: Build and Push REPOSITORY Image
# uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
# with:
# cache-from: type=gha,scope=build-repository
# cache-to: type=gha,mode=max,scope=build-repository

# context: ./h5ai-nginx

# # From https://github.com/ethereum/sourcify/issues/1385
# #
# # The `repository` service provides a link to open each verified contract in Remix.
# # However, for public self-hosted Sourcify instances (like in the case of Hedera) the _Open repo in Remix_ link does not work,
# # given the Remix plugin only fetches contracts from https://repo.sourcify.dev.
# #
# # When `HIDE_OPEN_IN_REMIX` is set to 1, a patch to remove the link is applied.
# # See https://github.com/sourcifyeth/h5ai-nginx/pull/5 for more details.
# build-args: |
# HIDE_OPEN_IN_REMIX=1
# file: ./h5ai-nginx/Dockerfile
# platforms: linux/amd64, linux/arm64
# push: true
# tags: ${{ env.REGISTRY }}/${{ github.repository }}/repository:${{env.TAG}}

0 comments on commit 5c9714a

Please sign in to comment.