This repository has been archived on 2024-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
egress-test/.drone.yml

41 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-02-13 22:48:01 +01:00
kind: pipeline
name: deploy
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: aaronriedel/egress-test
tags:
- latest
2023-02-14 00:39:45 +01:00
- ${DRONE_COMMIT_SHA:0:8}
- name: bump tag in deployment-repo
image: aaronriedel/kustomize-ci
2023-02-14 00:39:45 +01:00
commands:
- cd /deployment-repo
- git clone https://git.ar21.de/aaron/egress-test-deployment.git .
- kustomize edit set image aaronriedel/egress-test=aaronriedel/egress-test:${DRONE_COMMIT_SHA:0:8}
- kustomize build -o /deployment-repo/ressources/deployment.yaml
volumes:
- name: deployment-repo
path: /deployment-repo
- name: push new tag to deployment-repo
image: appleboy/drone-git-push
settings:
branch: main
remote: ssh://git@git.ar21.de:2222/aaron/egress-test-deployment.git
path: /deployment-repo
force: false
commit: true
commit_message: "update image tag to ${DRONE_COMMIT_SHA:0:8}"
ssh_key:
from_secret: GITEA_SSH_KEY
volumes:
- name: deployment-repo
path: /deployment-repo
volumes:
- name: deployment-repo
temp: {}