From 4ac903afedf0a0ad67a491fbf1c5d456d38dbe2a Mon Sep 17 00:00:00 2001 From: Francesco Nazzaro <francesconazzaro89@gmail.com> Date: Tue, 2 Jan 2024 10:47:28 +0100 Subject: [PATCH] add backup and restore build workflow --- .github/workflows/build-backup-restore.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build-backup-restore.yml diff --git a/.github/workflows/build-backup-restore.yml b/.github/workflows/build-backup-restore.yml new file mode 100644 index 0000000..eee13a1 --- /dev/null +++ b/.github/workflows/build-backup-restore.yml @@ -0,0 +1,34 @@ +name: Build backup-restore image + +on: + workflow_dispatch: + inputs: + deployment_branch: + description: 'Deployment branch' + required: true + default: 'main' + build_mode: + type: choice + description: Build mode + options: + - dev + - stable + image_tag: + description: 'Image tag' + required: true + default: 'latest' + workflow_run: + workflows: + - ecmwf-projects/cads-build-farm/build-images.yml + types: [requested] + +jobs: + build_backup_restore: + name: Build backup-restore:${{ inputs.image_tag }} from ${{ inputs.build_mode }} + uses: ecmwf-projects/cads-build-farm/.github/workflows/build-cads-image.yml@main + with: + image_name: backup-restore + deployment_branch: ${{ inputs.deployment_branch }} + build_mode: ${{ inputs.build_mode }} + image_tag: ${{ inputs.image_tag }} + secrets: inherit