1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 14:56:40 +00:00

remove building of containers entirely

This commit is contained in:
Anson 2023-09-03 11:56:00 -06:00
parent b70b0b5d42
commit 4cf0330734
2 changed files with 0 additions and 58 deletions

View File

@ -1,29 +0,0 @@
version: 2.1
executors:
docker-executor:
docker:
- image: circleci/python:3.8
jobs:
build:
executor: docker-executor
steps:
- checkout
- setup_remote_docker:
version: 19.03.13
docker_layer_caching: true
- run:
name: Build Docker Images
command: docker-compose build
- run:
name: Push Docker Images to GitLab
command: |
export GITLAB_IMAGE_PREFIX=$GITLAB_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
docker-compose push
workflows:
version: 2
build_and_push:
jobs:
- build

View File

@ -3,32 +3,3 @@ black:
image: registry.gitlab.com/pipeline-components/black:latest
script:
- black --check --verbose -- .
build:master:
stage: build
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:latest"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
build:branch:
stage: build
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_BRANCH}"
rules:
- if: '$CI_COMMIT_BRANCH != "master"'