From 6cd79e070b919ab00ce23765f48f52b2e716a3a5 Mon Sep 17 00:00:00 2001 From: "waqas.yousaf" Date: Wed, 8 Jun 2022 12:18:11 +0200 Subject: [PATCH] OPS-5042 Backup repo --- .github/workflows/backups.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/backups.yml diff --git a/.github/workflows/backups.yml b/.github/workflows/backups.yml new file mode 100644 index 0000000..2acd7c7 --- /dev/null +++ b/.github/workflows/backups.yml @@ -0,0 +1,23 @@ +--- + +name: Backup Github Respository + +# ------------------------------------------------------------------------------------------------- +# When to run +# ------------------------------------------------------------------------------------------------- + +on: + push: + branches: + - master + +jobs: + backup: + uses: Flaconi/github-reusable-workflow/.github/workflows/backups.yml@stable + with: + enabled: True + region: eu-central-1 + secrets: + iam_role_arn: ${{ secrets.BACKUP_REPO_IAM_ROLE }} + bucket_name: ${{ secrets.BACKUP_REPO_BUCKET }} + git_read_token: ${{ secrets.REPO_READ_TOKEN }}