~toabctl/ubuntu-docker-images/+git/utils:refactor-libs

Last commit made on 2021-04-12
Get this branch:
git clone -b refactor-libs https://git.launchpad.net/~toabctl/ubuntu-docker-images/+git/utils
Only Thomas Bechtold can upload to this branch. If you are Thomas Bechtold please log in for upload directions.

Branch merges

Branch information

Name:
refactor-libs
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

c31e843... by Sergio Durigan Junior

Use code from lib/ and simplify procedures

This commit will convert the existing standalone scripts and make them
use code from the lib directory. This has a lot of benefits, for
example:

- The validation step now occurs only once, in the main script that is
  being called.

- It's possible to share credentials.

- It's easier to share code between the various parts.

Signed-off-by: Sergio Durigan Junior <email address hidden>

8b6241a... by Sergio Durigan Junior

Create lib/ and put listing and tagging code there

This code is the same than what is being currently used in the
standalone scripts. It will make it easier to share functions and
make simplify the processing of arguments.

Signed-off-by: Sergio Durigan Junior <email address hidden>

77ae7f1... by Sergio Durigan Junior

Implement ability to exclude images from being tagged

Sometimes it's useful to "tag everything but image XYZ". This commit
implements the code needed for this feature.

Signed-off-by: Sergio Durigan Junior <email address hidden>

0442d92... by Sergio Durigan Junior

Use M.N-XX.YY_edge as the source tag (and tag 'edge')

Given that Launchpad will soon stop tagging OCI builds using the
"edge" tag, we will now always use M.N-XX.YY_edge as the source tag
when tagging everything else. This has the benefit that we will be
able to tag things for the past releases as well, because each one
will have its own M.N-XX.YY_edge tag.

Signed-off-by: Sergio Durigan Junior <email address hidden>

3bc2a5b... by Sergio Durigan Junior

Small fix/improvement to tag-images.sh

- Add "edge" to the list of "ubuntu" image tags.

- Tighten "grep" when determining the "DISTRO-XX.YY_edge" tag.

e683a1d... by Sergio Durigan Junior

Fix typos on tag-images.sh

Signed-off-by: Sergio Durigan Junior <email address hidden>

75a4c7e... by Sergio Durigan Junior

Add a README file for the scripts

Add a README file explaining what the scripts do, the required
packages that need to be installed in order to run them, and how to
configure awscli.

Signed-off-by: Sergio Durigan Junior <email address hidden>

9c1b23c... by Sergio Durigan Junior

Add tag-images.sh

This script iterates over all available images from a
registry/namespace and tags them.

Signed-off-by: Sergio Durigan Junior <email address hidden>

fcfba63... by Sergio Durigan Junior

Add multi-arch-tagger.sh

This script performs multi-arch tagging for a certain image in a
registry/namespace.

Signed-off-by: Sergio Durigan Junior <email address hidden>

8a6aea9... by Sergio Durigan Junior

Add list-tags-for-image.sh

This script lists all tags for a certain image in a
registry/namespace.

Signed-off-by: Sergio Durigan Junior <email address hidden>