widl: Add support for function parameter flags to SLTG typelib generator.
[wine.git] / tools / gitlab / image.yml
blob1e9b320757243b8b1f18e28ce414043d9edb63b3
1 # CI script for creating the docker image used for Wine builds
3 build-image:
4   stage: image
5   rules:
6     - if: $CI_PIPELINE_SOURCE == 'push' && $CI_PROJECT_PATH == "wine/wine" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
7       changes:
8         - tools/gitlab/image.yml
9         - tools/gitlab/image.docker
10   image:
11     name: gcr.io/kaniko-project/executor:debug
12     entrypoint: [""]
13   variables:
14     IMAGE_SOURCE: "$CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX/debian:bookworm"
15     IMAGE_LOCAL: "$CI_REGISTRY_IMAGE:debian-bookworm"
16     DOCKER_FILE: "$CI_PROJECT_DIR/tools/gitlab/image.docker"
17   script:
18     - mkdir -p /kaniko/.docker
19     - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"},\"$CI_DEPENDENCY_PROXY_SERVER\":{\"auth\":\"$(printf "%s:%s" "$CI_DEPENDENCY_PROXY_USER" "$CI_DEPENDENCY_PROXY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
20     - sed -i "1iFROM $IMAGE_SOURCE" "$DOCKER_FILE"
21     - /kaniko/executor --context "$CI_PROJECT_DIR" --dockerfile "$DOCKER_FILE" --destination "$IMAGE_LOCAL"