~cjdc/ubuntu-docker-images:feature-test

Last commit made on 2021-10-01
Get this branch:
git clone -b feature-test https://git.launchpad.net/~cjdc/ubuntu-docker-images
Only Cristovao Cordeiro can upload to this branch. If you are Cristovao Cordeiro please log in for upload directions.

Branch merges

Branch information

Name:
feature-test
Repository:
lp:~cjdc/ubuntu-docker-images

Recent commits

6e96720... by Tomáš Virtus

tag-images.sh: Tag latest/edge shorthand tags

Currently we don't update latest/edge shorthand tags. There's a plan
to implement tagging similar to snaps[1]. In the meantime, update
latest/edge tags according to the following rules:

  If the repository is 'lts',
    set both 'latest' and 'edge' tags to the latest LTS release.

  If the repository is 'ubuntu',
    set 'latest' tag to the latest stable release and
    set 'edge' tag to the devel release.

[1] https://snapcraft.io/docs/release-management

e8797c0... by Tomáš Virtus

tag-images.sh: Tag devel release with XX.YY_edge

We do not want to tag devel releases with stable/beta/candidate tags
(so called inherited tags), but we still want XX.YY_edge implict tag
alongside XX.YY and $release_name tags.

37c304a... by Tomáš Virtus

tag-images.sh: Fix checks for existing tags

Checks for existing tags currently use word regex. E.g. to check
whether tag 'impish' exists, we do

  grep -Fwq impish <<< "${IMAGE_TAGS[@]}"

But that also matches impish-21.10_edge tag, because '-' (dash) is a
word boundary.

Change the checks to match regex on full lines.

dce5193... by Athos Ribeiro

Fix Go manifest builder

github.com/golang/pkgsite, the upstream for pkg.go.dev, had its frontend
refactored since the current golang-manifest-builder.py was written.
This patch adjusts the script to properly parse the new package unit
page to fetch the package repository.

Signed-off-by: Athos Ribeiro <email address hidden>

6a46571... by Sergio Durigan Junior

tag-images.sh: Set DRY_RUN=0

This is needed because "-eq" doesn't work otherwise, which will lead
to errors when invoking the script without --dry-run.

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

7469a2d... by Thomas Bechtold

tag-images.sh: add --tag-filter to tag only a specific _edge tag

Currently the tag-images.sh script interates over all the given _edge
tags from the given images in the given namespace and adds the needed
tags (eg. _beta, _candidate or _stable). That's not always
wanted. Eg. when using the script in a CI pipeline where a job does
only update a specific image (eg. the "impish-21.10_edge" tagged
image), the script should only add the additional tags to that tagged
image.
With the new parameter, that's possible.
Assuming there are multiple _edge tags (eg. "impish-21.10_edge" and
"hirsute-21.04_edge") for a given image and --tag-filter is set to
"impish", the script will now only add the extra tags to the image
that is tagged with "impish-21.10_edge" .

Note: --tag-filter only works when the given IMAGE is a base
image (means that IMAGE must be "ubuntu").

3206a6f... by Sergio Durigan Junior

helpers/registry-login.sh: Reduce verbosity

It's not good to print info messages during the login process because
they can pollute the output of other scripts. This commit gets rid of
one such message, and transforms another info message into a debug
message.

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

76efc1a... by Sergio Durigan Junior

lib/{image,tag}.sh: Fix shellcheck warnings

Running shellcheck on these two files will flag a few minor things
that can be easily fixed. This commit addresses them.

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

747221d... by Sergio Durigan Junior

tag-images.sh: Reorganize code to reduce indentation

If we move the code to tag the distroname and the distroversion up, we
can bail out of the loop earlier if we're tagging a devel release,
which means that we can reduce the indentation level of the subsequent
code.

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

b8b5b74... by Thomas Bechtold

helpers/registry-login: allow AWS_{ACCESS_KEY_ID,_SECRET_ACCESS_KEY}

Currently there needs to be a AWS profile configured to tag images on
AWS. With this change, it's also possible to use the standard[0] AWS
environment variables to provide the credentials for login.

[0]
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html