Skip to content

Commit

Permalink
feat: Updated github actions workflow.
Browse files Browse the repository at this point in the history
Divided workflow into production and development. Development is only triggered on the develop branch.
  • Loading branch information
KvelaGorrrrnio committed Nov 4, 2021
1 parent 1c1454b commit 765d9ad
Show file tree
Hide file tree
Showing 4 changed files with 318 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.6
1.11.0-locally-modified
82 changes: 0 additions & 82 deletions .github/workflows/deploy-image.yml

This file was deleted.

17 changes: 9 additions & 8 deletions .github/workflows/node-ci.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ env:
on:
push:
branches:
- "*"
- "!master"
- "!main"
- "!develop"
tags:
- "**"
- "!v*"
- "develop"

jobs:
cache-dependencies:
Expand Down Expand Up @@ -92,6 +86,13 @@ jobs:
- name: Access repository
uses: actions/checkout@v2

- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'

- uses: actions/download-artifact@v2
with:
name: ${{ github.event.repository.name }}-develop
Expand All @@ -103,7 +104,7 @@ jobs:
with:
images: "tv2media/${{ github.event.repository.name }}"
tags: |
type=ref,event=branch
develop
- name: Log in to Docker Hub
uses: docker/login-action@v1
Expand Down
Loading

0 comments on commit 765d9ad

Please sign in to comment.