From 43af9954b74d8706a6aaed244902b9d0450fd2f9 Mon Sep 17 00:00:00 2001 From: levisingularity Date: Wed, 1 Nov 2023 18:25:53 -0300 Subject: [PATCH] ci: add versioning workflow --- .github/workflows/aws-ci.yml | 6 ++++-- .github/workflows/version.yml | 24 ++++++++++++++++++++++++ .github/workflows/vultr-ci.yml | 4 +++- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/version.yml diff --git a/.github/workflows/aws-ci.yml b/.github/workflows/aws-ci.yml index 510e516..868c928 100644 --- a/.github/workflows/aws-ci.yml +++ b/.github/workflows/aws-ci.yml @@ -2,9 +2,11 @@ name: AWS Build & Deployment on: - push: + workflow_run: + workflows: ["Versioning"] + types: [requested] branches: - - feat/deployment + - master env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 0000000..0b7befa --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,24 @@ +--- +name: Versioning + +on: + workflow_dispatch: + inputs: + version: + description: "Version" + required: true + +jobs: + tag: + runs-on: ubuntu-latest + steps: + - name: Create Tag and Release + uses: singnet/das-scripts-pipeline/.github/workflows/action.yml@master + with: + version: ${{ github.event.inputs.version }} + version-strategy: bump-version-from-variable-value + job-image-namespace: trueagi + job-image-version-semver: semantic-versioning + main-branch: master + version-tag-regex-pattern: /^v\d+\.\d+\.\d+$/ + version-require-confirmation: "true" \ No newline at end of file diff --git a/.github/workflows/vultr-ci.yml b/.github/workflows/vultr-ci.yml index 818374d..debbba1 100644 --- a/.github/workflows/vultr-ci.yml +++ b/.github/workflows/vultr-ci.yml @@ -2,7 +2,9 @@ name: Vultr Build & Deployment on: - push: + workflow_run: + workflows: ["Versioning"] + types: [requested] branches: - master