automation, travis: Specify registry for container images

Container registry is now specified at container images in order to
avoid name squatting attacks or any other related problems.

Ref: https://raesene.github.io/blog/2019/09/25/typosquatting-in-a-multi-registry-world/

Signed-off-by: Elvira García Ruiz <elviragr@riseup.net>
This commit is contained in:
Elvira García Ruiz 2020-02-21 21:18:43 +01:00 committed by Till Maas
parent f1306a4c6a
commit 77372fc5bf
4 changed files with 12 additions and 12 deletions

View File

@ -5,28 +5,28 @@ env:
global:
- use_coveralls=true
matrix:
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type integ --pytest-args='-x'
--copr networkmanager/NetworkManager-1.22-git"
use_codecov=true
use_coveralls=false
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type integ_slow --pytest-args='-x'
--copr networkmanager/NetworkManager-1.22-git"
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type integ --pytest-args='-x'
--copr networkmanager/NetworkManager-master"
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type format"
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type lint"
- CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type unit_py36"
matrix:
fast_finish: true
allow_failures:
- env: CONTAINER_IMAGE=nmstate/centos8-nmstate-dev
- env: CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
testflags="--test-type integ --pytest-args='-x'
--copr networkmanager/NetworkManager-master"

View File

@ -79,8 +79,8 @@ sudo ../packaging/build-container.sh local/fedora-nmstate-dev
To test the image, either specify it manually as described above or tag it locally:
```
sudo podman tag local/centos8-nmstate-dev nmstate/centos8-nmstate-dev:latest
sudo podman tag local/fedora-nmstate-dev nmstate/fedora-nmstate-dev:latest
sudo podman tag local/centos8-nmstate-dev docker.io/nmstate/centos8-nmstate-dev:latest
sudo podman tag local/fedora-nmstate-dev docker.io/nmstate/fedora-nmstate-dev:latest
```
### Push local image to the docker hub

View File

@ -15,8 +15,8 @@ TEST_TYPE_UNIT_PY38="unit_py38"
TEST_TYPE_INTEG="integ"
TEST_TYPE_INTEG_SLOW="integ_slow"
FEDORA_IMAGE_DEV="nmstate/fedora-nmstate-dev"
CENTOS_IMAGE_DEV="nmstate/centos8-nmstate-dev"
FEDORA_IMAGE_DEV="docker.io/nmstate/fedora-nmstate-dev"
CENTOS_IMAGE_DEV="docker.io/nmstate/centos8-nmstate-dev"
PYTEST_OPTIONS="--verbose --verbose \
--log-level=DEBUG \

View File

@ -22,7 +22,7 @@ EXEC_PATH="$(dirname "$(realpath "$0")")"
PROJECT_PATH="$(dirname $EXEC_PATH)"
DEFAULT_BUILD_FLAGS="--no-cache --rm"
DEFAULT_TAG_PREFIX="nmstate"
DEFAULT_TAG_PREFIX="docker.io/nmstate"
: ${CONTAINER_CMD:=podman}