-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
-
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.