Skip to content

Commit

Permalink
Authenticate QCI registry quay-proxy.ci.openshift.org (openshift-knat…
Browse files Browse the repository at this point in the history
…ive#183)

* Authenticate QCI registry quay-proxy.ci.openshift.org

* Quote the token

* Update readme with info about accessing QCI registry

* Simplify readme
  • Loading branch information
mgencur authored Jul 16, 2024
1 parent 1cc5787 commit b3c9a8b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release-generate-ci-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ jobs:
- name: Generate CI
working-directory: ./src/github.com/openshift-knative/hack
run: make generate-ci-no-clean ARGS=--branch=master
env:
QCI_TOKEN: ${{ secrets.QCI_TOKEN }}
run: |
podman login -u=image-puller -p="${QCI_TOKEN}" quay-proxy.ci.openshift.org
make generate-ci-no-clean ARGS=--branch=master
- name: Create Pull Request
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-generate-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ jobs:
git config --global user.name "serverless-qe"
- name: Generate CI
working-directory: ./src/github.com/openshift-knative/hack
run: make generate-ci-no-clean ARGS=--branch=master
env:
QCI_TOKEN: ${{ secrets.QCI_TOKEN }}
run: |
podman login -u=image-puller -p="${QCI_TOKEN}" quay-proxy.ci.openshift.org
make generate-ci-no-clean ARGS=--branch=master
- name: Create Pull Request
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
env:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ CI tooling and hacks to improve CI
- Run `make generate-ci ARGS=--remote=<your_remote>`
- For example, `make generate-ci ARGS=--remote=git@github.com:pierDipi/release.git`
- If you are using `podman`, make sure to have `export CONTAINER_ENGINE=podman` set
- Make sure podman can access QCI registry at quay-proxy.ci.openshift.org. Members of this [Rover group](https://rover.redhat.com/groups/group/openshift-serverless-admins) can authenticate in this way:
- Copy the login command from [app.ci](https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request) and run it
- Run `podman login -u=$(oc whoami) -p=$(oc whoami -t) quay-proxy.ci.openshift.org`
- Create a PR to [https://github.com/openshift/release](https://github.com/openshift/release) (to be
automated)

Expand Down
2 changes: 1 addition & 1 deletion pkg/prowgen/prowgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func copyOwnersFileIfNotPresent(dir string) error {
}

func RunOpenShiftReleaseGenerator(ctx context.Context, openShiftRelease Repository) error {
if _, err := run(ctx, openShiftRelease, "make", "-f", "Makefile.legacy", "ci-operator-config", "jobs"); err != nil {
if _, err := run(ctx, openShiftRelease, "make", "ci-operator-config", "jobs"); err != nil {
return err
}
return nil
Expand Down

0 comments on commit b3c9a8b

Please sign in to comment.