github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/infrastructure/docker/git-ssh/Earthfile (about)

     1  VERSION 0.8
     2  
     3  ARG --required --global DOCKER_REGISTRY_URI
     4  ARG --required --global IMAGE_TAG
     5  
     6  image:
     7      FROM DOCKERFILE .
     8  
     9  build:
    10      # duplication since earthly doesn't allow the --global flag with variables defined with LET
    11      LET IMAGE_NAME=$DOCKER_REGISTRY_URI/infrastructure/docker/git-ssh:$IMAGE_TAG
    12      
    13      FROM +image
    14  
    15      SAVE IMAGE $IMAGE_NAME
    16  
    17  publish:
    18      # duplication since earthly doesn't allow the --global flag with variables defined with LET
    19      LET IMAGE_NAME=$DOCKER_REGISTRY_URI/infrastructure/docker/git-ssh:$IMAGE_TAG
    20      
    21      FROM +image
    22  
    23      SAVE IMAGE --push $IMAGE_NAME