WIP: CI/CD tag version number
This commit is contained in:
parent
aee68e37f8
commit
391a7e90ef
8
.github/workflows/website.yml
vendored
8
.github/workflows/website.yml
vendored
@ -30,19 +30,23 @@ jobs:
|
|||||||
name: Tag Version
|
name: Tag Version
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: ztimson/actions/clone@develop
|
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
|
- name: Tag Version
|
||||||
uses: ztimson/actions/tag@develop
|
uses: ztimson/actions/tag@develop
|
||||||
|
with:
|
||||||
|
tag: ${{env.VERSION}}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Build & Push Dockerfile
|
name: Build & Push Dockerfile
|
||||||
needs: build
|
needs: build
|
||||||
uses: ztimson/actions/.github/workflows/docker.yaml@develop
|
uses: ztimson/actions/.github/workflows/docker.yaml@develop
|
||||||
with:
|
with:
|
||||||
name: ztimson/legio30
|
name: ztimson/legio-30
|
||||||
repository: ${{github.server_url}}/${{github.repository}}.git
|
repository: ${{github.server_url}}/${{github.repository}}.git
|
||||||
pass: ${{secrets.DEPLOY_TOKEN}}
|
pass: ${{secrets.DEPLOY_TOKEN}}
|
||||||
|
Loading…
Reference in New Issue
Block a user