From ddff6396d87840f0eb42ca1ac6940589299d702c Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 3 Dec 2023 18:29:34 -0500 Subject: [PATCH] adding pipeline for image promotion --- .drone.yml | 23 +++++++++++++++++++++++ .pre-commit-config.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 79f8f00..4449aba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,4 @@ +--- kind: pipeline type: docker name: CI Test Pipeline @@ -16,3 +17,25 @@ trigger: # Secrets used to pull private images image_pull_secrets: - dockerconfigjson + +--- +kind: pipeline +type: docker +name: Build Production Image + +- name: Build Speech Collect Container Image + image: plugins/docker + settings: + username: automate + password: + from_secret: automate_password + dockerfile: Dockerfile + registry: registry.runcible.io + repo: registry.runcible.io/speech-collect + tags: + - ${DRONE_COMMIT_SHA} + when: + branch: + - master + event: + - push diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7064b9..5ec097a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - id: end-of-file-fixer - id: check-yaml exclude: - ^(charts/speech-collect/templates) + ^(charts/speech-collect/templates|\.drone\.yml)$ - id: check-added-large-files - id: debug-statements - repo: https://github.com/shellcheck-py/shellcheck-py