2022-10-25 16:46:41 -07:00

35 lines
1.0 KiB
YAML

kind: pipeline
name: auto-repo-update-drone-plugin
type: docker
platform:
os: linux
arch: arm64
steps:
- name: push-built-image
image: plugins/docker
settings:
registry: gitea.scubbo.org
repo: gitea.scubbo.org/scubbo/auto-update-test-app-code
tags: ${DRONE_COMMIT_SHA:0:10}
username: scubbo
password:
from_secret: gitea_password
- name: auto-update-infra-repo
image: gitea.scubbo.org/scubbo/auto-repo-update-drone-plugin:latest
settings:
branch: main
git_repo: https://gitea.scubbo.org/scubbo/auto-update-test-infra-code
image_tag: ${DRONE_COMMIT_SHA:0:10}
destination_file: helm/deployed-images/prod
author_email: scubbojj@gmail.com
author_name: Jack Jackson
commit_message: "[Auto] Update Prod to ${DRONE_COMMIT_SHA:0:10}"
access_token:
from_secret: gitea_pat
# This allows pulling from my private image registry (at gitea.scubbo.org)
# https://community.harness.io/t/how-to-pull-private-images-with-1-0/11329
image_pull_secrets:
- dockerconfigjson