Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2699

CI step "Log in to Quay.io" is failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • IOP-POC-0.1
    • None
    • insights-on-prem
    • None

      Description of the problem:

      In Build and Push CI workflow, the "Log in to Quay.io" step is failing:

      Run docker/login-action@v3
        with: 
          registry: quay.io
          ecr: auto
          logout: true
        env: 
          REGISTRY: quay.io
          IMAGE_NAME: insights-onprem/ros-ocp-backend
      Error: Username and password required
      Run docker/login-action@v3
        with: 
          registry: quay.io
          ecr: auto
          logout: true
        env: 
          REGISTRY: quay.io
          IMAGE_NAME: insights-onprem/ros-ocp-backend
      Error: Username and password required
      

      It is supposed to run only on Pr merges and only if they affect a specific set of files

      on: 
        push: 
          branches: [ main ]
          paths: 
            - '.github/workflows/build-and-push.yml'
            - '.dockerignore'
            - 'Dockerfile'
            - 'cmd/**'
            - 'internal/**'
            - 'migrations/**'
            - 'go.mod'
            - 'go.sum'
            - 'rosocp.go'
            - 'openapi.json'
            - 'resource_optimization_openshift.json'
      

      See as example PR 27

      How reproducible:
      Always, on each PR

      Expected result
      The build step must be skipped when the conditions aren't met.

              jgil@redhat.com Jordi Gil
              gciavarrini@redhat.com Gloria Ciavarrini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: