From 391a7e90ef8ad3cbfe8820efef6481cd9d1d1bd2 Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 4 Dec 2023 23:16:20 -0500 Subject: [PATCH] WIP: CI/CD tag version number --- .github/workflows/website.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 7e931fb..c252920 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -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}}