github.com/nuvolaris/nuv@v0.0.0-20240511174247-a74e3a52bfd8/validate/Taskfile.yaml (about)

     1  # Licensed to the Apache Software Foundation (ASF) under one
     2  # or more contributor license agreements.  See the NOTICE file
     3  # distributed with this work for additional information
     4  # regarding copyright ownership.  The ASF licenses this file
     5  # to you under the Apache License, Version 2.0 (the
     6  # "License"); you may not use this file except in compliance
     7  # with the License.  You may obtain a copy of the License at
     8  #
     9  #   http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing,
    12  # software distributed under the License is distributed on an
    13  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    14  # KIND, either express or implied.  See the License for the
    15  # specific language governing permissions and limitations
    16  # under the License.
    17  
    18  version: '3'
    19  
    20  vars:
    21      VER:
    22          sh: git describe --tags --abbrev=0 2>/dev/null || git rev-parse --short HEAD
    23  
    24  tasks:
    25      default: task --list-all
    26  
    27      pre:
    28        - docker login
    29   
    30      validate:
    31        silent: true
    32        cmds:
    33        - echo === "{{.IMG}}"
    34        - >
    35          cat validate.sh 
    36          | docker run -i "{{.IMG}}" 
    37          env VER="{{.VER}}" EXT="{{.EXT}}" ARCH={{ARCH}} bash -
    38  
    39      ro9:
    40        - task: validate
    41          vars:
    42              EXT: ".rpm"
    43              IMG: "rockylinux:9"
    44      
    45      ubi9:
    46        - task: validate
    47          vars:
    48              EXT: ".rpm"
    49              IMG: "registry.access.redhat.com/ubi9/ubi:latest"
    50       
    51      ostumble:
    52        - task: validate
    53          vars:
    54              EXT: ".rpm"
    55              IMG: "opensuse/tumbleweed:latest"
    56  
    57      ub22:
    58        - task: validate
    59          vars:
    60              EXT: ".deb"
    61              IMG: "ubuntu:22.04"
    62  
    63      de12:
    64        - task: validate
    65          vars:
    66              EXT: ".deb"
    67              IMG: "debian:12"
    68  
    69      ro8:
    70        - task: validate
    71          vars:
    72              EXT: "_redhat8.rpm"
    73              IMG: "rockylinux:8"
    74  
    75      ubi8:
    76        - task: validate
    77          vars:
    78              EXT: "_redhat8.rpm"
    79              IMG: "registry.access.redhat.com/ubi8/ubi:latest"
    80     
    81      os15:
    82        - task: validate
    83          vars:
    84              EXT: "_redhat8.rpm"
    85              IMG: "opensuse/leap:latest"
    86      ub20:
    87        - task: validate
    88          vars:
    89              EXT: "_ubuntu20.deb"
    90              IMG: "ubuntu:20.04"
    91  
    92      de11:
    93        - task: validate
    94          vars:
    95              EXT: "_ubuntu20.deb"
    96              IMG: "debian:11"
    97  
    98      osleap:
    99        - task: validate
   100          vars:
   101              EXT: "_redhat8.rpm"
   102              IMG: "opensuse/leap:latest"
   103  
   104  
   105      all:
   106       - task: pre
   107       - task: ub22
   108       - task: ub20
   109       - task: ubi9
   110       - task: ubi8
   111       - task: de12
   112       - task: de11
   113       - task: ro9
   114       - task: ro8
   115       - task: osleap
   116       - task: ostumble