Skip to content

Commit

Permalink
ci: add versioning workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Nov 1, 2023
1 parent 920370a commit 43af995
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/aws-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 3 additions & 1 deletion .github/workflows/vultr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: Vultr Build & Deployment

on:
push:
workflow_run:
workflows: ["Versioning"]
types: [requested]
branches:
- master

Expand Down

0 comments on commit 43af995

Please sign in to comment.