WIP: CI/CD tag version number
Some checks failed
Build Website / Build NPM Project (push) Successful in 40s
Build Website / Tag Version (push) Failing after 1s
Build Website / Build & Push Dockerfile (push) Successful in 2m40s

This commit is contained in:
Zakary Timson 2023-12-04 23:16:20 -05:00
parent aee68e37f8
commit 391a7e90ef

View File

@ -30,19 +30,23 @@ jobs:
name: Tag Version
needs: build
runs-on: ubuntu-latest
container: node
steps:
- name: Clone Repository
uses: ztimson/actions/clone@develop
- name: Get Version Number
run: echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
- name: Tag Version
uses: ztimson/actions/tag@develop
with:
tag: ${{env.VERSION}}
publish:
name: Build & Push Dockerfile
needs: build
uses: ztimson/actions/.github/workflows/docker.yaml@develop
with:
name: ztimson/legio30
name: ztimson/legio-30
repository: ${{github.server_url}}/${{github.repository}}.git
pass: ${{secrets.DEPLOY_TOKEN}}