Skip to content

Commit

Permalink
Add option of pushing to Quay
Browse files Browse the repository at this point in the history
If neither --skip-quay nor --skip-pulp is specified, only a push
to Quay is performed. Pubtools-quay is used for pushing to Quay.
  • Loading branch information
querti committed Feb 12, 2021
1 parent f413ed9 commit 1cfaf38
Show file tree
Hide file tree
Showing 10 changed files with 903 additions and 61 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[report]
show_missing = True
fail_under = 90
exclude_lines =
pragma: no cover
if __name__ == .__main__.:
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ include README.rst
include LICENSE
recursive-include docs *.rst conf.py Makefile
recursive-include pubtools_iib *.py
include requirements.txt
28 changes: 28 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Setup
Usage
=====

Push the created index image to Pulp
::

$ export PULP_PASSWORD="pulppassword"
Expand All @@ -41,6 +42,7 @@ Usage
--index-image container-registry.example.com/index/image:latest
--bundle container-registry.example.com/bundle/image:123
--arch x86_64
--skip-quay

$ export PULP_PASSWORD="pulppassword"
$ pubtools-iib-remove-operators --pulp-url https://pulphost.example.com/\
Expand All @@ -51,4 +53,30 @@ Usage
--index-image container-registry.example.com/index/image:latest
--operator bundle/image:123
--arch x86_64
--skip-quay

Push the created index image to Quay in a remote server and send a UMB message
::

$ export QUAY_PASSWORD=quay_password
$ export SSH_PASSWORD=ssh_password
$ pubtools-iib-add-bundles \
--iib-server iibhostname.example.com \
--binary-image container-registry.example.com/binary/image:latest \
--index-image container-registry.example.com/index/image:latest \
--bundle container-registry.example.com/bundle/image:123 \
--arch x86_64 \
--skip-pulp \
--quay-dest-repo quay.io/namespace/repo \
--quay-user namespace+robot_account \
--quay-remote-exec \
--quay-ssh-remote-host 127.0.0.1 \
--quay-ssh-remote-host-port 2222 \
--quay-ssh-username ssh_user \
--quay-send-umb-msg \
--quay-umb-url amqps://umb-url1:5671 \
--quay-umb-url amqps://umb-url2:5671 \
--quay-umb-cert /path/to/file.crt \
--quay-umb-client-key /path/to/file.key \
--quay-umb-ca-cert /path/to/cacert.crt

0 comments on commit 1cfaf38

Please sign in to comment.