| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,19 +1,42 @@ | |||
| 1 | 1 | image: python:3.12 | |
| 2 | 2 | ||
| 3 | 3 | stages: | |
| 4 | + - build | ||
| 4 | 5 | - deploy | |
| 5 | 6 | - promote | |
| 6 | 7 | ||
| 7 | - deploy-images: | ||
| 8 | - stage: deploy | ||
| 8 | + build-images: | ||
| 9 | + stage: build | ||
| 9 | 10 | image: | |
| 10 | 11 | name: gcr.io/kaniko-project/executor:debug | |
| 11 | 12 | entrypoint: [""] | |
| 12 | 13 | script: | |
| 13 | - - executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG-alpine | ||
| 14 | - - executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG-slim-bullseye --build-arg PYTHON_FLAVOR=slim-bullseye | ||
| 14 | + - executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE/$CI_RUNNER_EXECUTABLE_ARCH:$CI_COMMIT_TAG-alpine | ||
| 15 | + - executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE/$CI_RUNNER_EXECUTABLE_ARCH:$CI_COMMIT_TAG-slim-bullseye --build-arg PYTHON_FLAVOR=slim-bullseye | ||
| 15 | 16 | rules: | |
| 16 | 17 | - if: $CI_COMMIT_TAG | |
| 18 | + tags: | ||
| 19 | + - $RUNNER_TAG | ||
| 20 | + parallel: | ||
| 21 | + matrix: | ||
| 22 | + # See tags in https://docs.gitlab.com/ee/ci/runners/hosted_runners/linux.html | ||
| 23 | + - RUNNER_TAG: saas-linux-medium-amd64 | ||
| 24 | + - RUNNER_TAG: saas-linux-medium-arm64 | ||
| 25 | + | ||
| 26 | + deploy-images: | ||
| 27 | + stage: deploy | ||
| 28 | + image: | ||
| 29 | + name: mplatform/manifest-tool:alpine-v2.0.4@sha256:38b399ff66f9df247af59facceb7b60e2cd01c2d649aae318da7587efb4bbf87 | ||
| 30 | + entrypoint: [""] | ||
| 31 | + script: | ||
| 32 | + - manifest-tool --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD push from-args | ||
| 33 | + --platforms linux/amd64,linux/arm64 | ||
| 34 | + --template $CI_REGISTRY_IMAGE/OS/ARCH:$CI_COMMIT_TAG-alpine | ||
| 35 | + --target $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG-alpine | ||
| 36 | + - manifest-tool --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD push from-args | ||
| 37 | + --platforms linux/amd64,linux/arm64 | ||
| 38 | + --template $CI_REGISTRY_IMAGE/OS/ARCH:$CI_COMMIT_TAG-slim-bullseye | ||
| 39 | + --target $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG-slim-bullseye | ||
| 17 | 40 | ||
| 18 | 41 | tag-latest: | |
| 19 | 42 | stage: promote | |
| Back | FazBrowse Home | New Git URL |
0 commit comments