From e4053e7090864d8c30ea133db555ec1222d32913 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 27 May 2022 15:57:03 +0000 Subject: [PATCH] workflows: Add build and deploy on release tag workflow This workflow will launch a Jenkins build and draft deploy job when a new tag is made. Changelog-entry: Add build and deploy workflow Signed-off-by: Alex Gonzalez --- .github/workflows/build_and_deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build_and_deploy.yml diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml new file mode 100644 index 0000000..be6d64b --- /dev/null +++ b/.github/workflows/build_and_deploy.yml @@ -0,0 +1,18 @@ +name: 'Deploy on release tag' + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+\+?r?e?v?[0-9]? + - v20[0-9][0-9].[0-1]?[1470].[0-9]+ + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + release-on-tag: + uses: balena-os/github-workflows/.github/workflows/build_and_deploy.yml@v0.0.5 + with: + deployTo: "production" + final: "no" + secrets: inherit