Commit ca69772d authored by Jakub Ružička's avatar Jakub Ružička
Browse files

ci: add scripts for image build/upload

parent 62b6ce05
Docker Build
------------
# apkg CI images
* python-current (for python-$VER replace "current" with "$VER")
## build image
use `build.sh` to build docker image, for example:
```
./build.sh python-current
```
$ docker build --no-cache -t registry.nic.cz/packaging/apkg/ci/python-current:apkg python-current
## upload image into apkg CI
you need to login first:
```
$ docker login registry.nic.cz
$ docker push registry.nic.cz/packaging/apkg/ci/python-current:apkg
```
then you can use `upload.sh` script:
```
./upload.sh python-current
```
#!/bin/bash
# build specified docker image
IMAGE=$1
if [ -z "$IMAGE" ]; then
echo "usage: $0 IMAGE"
exit 1
fi
set -ex
docker build --no-cache -t "registry.nic.cz/packaging/apkg/ci/$IMAGE:apkg" "$IMAGE"
#!/bin/bash
# upload docker image into apkg registry
IMAGE=$1
if [ -z "$IMAGE" ]; then
echo "usage: $0 IMAGE"
exit 1
fi
set -ex
docker push "registry.nic.cz/packaging/apkg/ci/$IMAGE:apkg"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment