mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	ci: Fix docker CI in forks (#2435)
This commit is contained in:
		@@ -24,6 +24,7 @@ inputs:
 | 
			
		||||
  dockerhub_repo:
 | 
			
		||||
    description: DockerHub repository name
 | 
			
		||||
    required: false
 | 
			
		||||
    default: ""
 | 
			
		||||
  dockerhub_description:
 | 
			
		||||
    description: Short description of the image
 | 
			
		||||
    required: false
 | 
			
		||||
 
 | 
			
		||||
@@ -97,5 +97,5 @@ jobs:
 | 
			
		||||
          directory: docker/clio
 | 
			
		||||
          tags: ${{ inputs.tags }}
 | 
			
		||||
          platforms: linux/amd64
 | 
			
		||||
          dockerhub_repo: rippleci/clio
 | 
			
		||||
          dockerhub_repo: ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio' || '' }}
 | 
			
		||||
          dockerhub_description: Clio is an XRP Ledger API server.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								.github/workflows/update_docker_ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/update_docker_ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -69,7 +69,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          images: |
 | 
			
		||||
            ${{ needs.repo.outputs.GHCR_REPO }}/clio-gcc
 | 
			
		||||
            rippleci/clio_gcc
 | 
			
		||||
            ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          push_image: ${{ github.event_name != 'pull_request' }}
 | 
			
		||||
          directory: docker/compilers/gcc
 | 
			
		||||
          tags: |
 | 
			
		||||
@@ -81,7 +81,7 @@ jobs:
 | 
			
		||||
          build_args: |
 | 
			
		||||
            GCC_MAJOR_VERSION=${{ env.GCC_MAJOR_VERSION }}
 | 
			
		||||
            GCC_VERSION=${{ env.GCC_VERSION }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repo_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          dockerhub_description: GCC compiler for XRPLF/clio.
 | 
			
		||||
 | 
			
		||||
  gcc-arm64:
 | 
			
		||||
@@ -107,7 +107,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          images: |
 | 
			
		||||
            ${{ needs.repo.outputs.GHCR_REPO }}/clio-gcc
 | 
			
		||||
            rippleci/clio_gcc
 | 
			
		||||
            ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          push_image: ${{ github.event_name != 'pull_request' }}
 | 
			
		||||
          directory: docker/compilers/gcc
 | 
			
		||||
          tags: |
 | 
			
		||||
@@ -119,7 +119,7 @@ jobs:
 | 
			
		||||
          build_args: |
 | 
			
		||||
            GCC_MAJOR_VERSION=${{ env.GCC_MAJOR_VERSION }}
 | 
			
		||||
            GCC_VERSION=${{ env.GCC_VERSION }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repo_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }}
 | 
			
		||||
          dockerhub_description: GCC compiler for XRPLF/clio.
 | 
			
		||||
 | 
			
		||||
  gcc-merge:
 | 
			
		||||
@@ -196,7 +196,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          images: |
 | 
			
		||||
            ${{ needs.repo.outputs.GHCR_REPO }}/clio-clang
 | 
			
		||||
            rippleci/clio_clang
 | 
			
		||||
            ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_clang' || '' }}
 | 
			
		||||
          push_image: ${{ github.event_name != 'pull_request' }}
 | 
			
		||||
          directory: docker/compilers/clang
 | 
			
		||||
          tags: |
 | 
			
		||||
@@ -206,7 +206,7 @@ jobs:
 | 
			
		||||
          platforms: linux/amd64,linux/arm64
 | 
			
		||||
          build_args: |
 | 
			
		||||
            CLANG_MAJOR_VERSION=${{ env.CLANG_MAJOR_VERSION }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repo_owner == 'XRPLF' && 'rippleci/clio_clang' || '' }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_clang' || '' }}
 | 
			
		||||
          dockerhub_description: Clang compiler for XRPLF/clio.
 | 
			
		||||
 | 
			
		||||
  tools-amd64:
 | 
			
		||||
@@ -321,7 +321,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          images: |
 | 
			
		||||
            ${{ needs.repo.outputs.GHCR_REPO }}/clio-ci
 | 
			
		||||
            rippleci/clio_ci
 | 
			
		||||
            ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_ci' || '' }}
 | 
			
		||||
          push_image: ${{ github.event_name != 'pull_request' }}
 | 
			
		||||
          directory: docker/ci
 | 
			
		||||
          tags: |
 | 
			
		||||
@@ -334,5 +334,5 @@ jobs:
 | 
			
		||||
            CLANG_MAJOR_VERSION=${{ env.CLANG_MAJOR_VERSION }}
 | 
			
		||||
            GCC_MAJOR_VERSION=${{ env.GCC_MAJOR_VERSION }}
 | 
			
		||||
            GCC_VERSION=${{ env.GCC_VERSION }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repo_owner == 'XRPLF' && 'rippleci/clio_ci' || '' }}
 | 
			
		||||
          dockerhub_repo: ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_ci' || '' }}
 | 
			
		||||
          dockerhub_description: CI image for XRPLF/clio.
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ RUN apt-get update \
 | 
			
		||||
 | 
			
		||||
ARG CLANG_MAJOR_VERSION=invalid
 | 
			
		||||
# Bump this version to force rebuild of the image
 | 
			
		||||
ARG BUILD_VERSION=0
 | 
			
		||||
ARG BUILD_VERSION=1
 | 
			
		||||
 | 
			
		||||
RUN wget --progress=dot:giga https://apt.llvm.org/llvm.sh \
 | 
			
		||||
    && chmod +x llvm.sh \
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ ARG UBUNTU_VERSION
 | 
			
		||||
 | 
			
		||||
ARG GCC_MAJOR_VERSION
 | 
			
		||||
 | 
			
		||||
ARG BUILD_VERSION=0
 | 
			
		||||
ARG BUILD_VERSION=1
 | 
			
		||||
 | 
			
		||||
ARG DEBIAN_FRONTEND=noninteractive
 | 
			
		||||
ARG TARGETARCH
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ ARG TARGETARCH
 | 
			
		||||
 | 
			
		||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 | 
			
		||||
 | 
			
		||||
ARG BUILD_VERSION=1
 | 
			
		||||
ARG BUILD_VERSION=2
 | 
			
		||||
 | 
			
		||||
RUN apt-get update \
 | 
			
		||||
    && apt-get install -y --no-install-recommends --no-install-suggests \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user