ci: build images with kaniko inside the job image
The runner does not expose its Docker socket to job containers, so the image job could not run docker build. Include the kaniko executor in the CI image and build/push directly from the job; docker login only writes the registry credentials file. Bump the CI image tag to 2.
This commit is contained in:
1 parent
4c6f1c8fe8
commit
a0434d974f
3 files changed
+22
-14
No files matched your search
@@ -7,7 +7,7 @@ set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
IMAGE="${CI_IMAGE:-gitea.tap-tap.win/taptap/audiomanager-ci}"
|
||||
TAG="${1:-1}"
|
||||
TAG="${1:-2}"
|
||||
|
||||
docker build -f "$ROOT/ci/Dockerfile" -t "$IMAGE:$TAG" "$ROOT"
|
||||
docker push "$IMAGE:$TAG"
|
||||
Reference in new issue
Block a user