Skip to content

Commit

Permalink
Setup dev and prod workflows (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomitheninja authored Aug 31, 2024
1 parent 114d830 commit 464f5c4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Development workflow

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
analysis:
strategy:
matrix:
component: [frontend, backend]

uses: kir-dev/workflows/.github/workflows/node-ci.yml@main
with:
package-manager: yarn
node-version: 20

docker-publish:
needs: [analysis]

strategy:
matrix:
component: [frontend, backend]

uses: kir-dev/workflows/.github/workflows/docker-publish.yml@main
with:
docker-image: ${{ github.repository }}-${{matrix.component}}
docker-file: Dockerfile.${{matrix.component}}
19 changes: 19 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Production workflow

on:
push:
branches:
- master

jobs:
docker-publish:
strategy:
matrix:
component: [frontend, backend]

uses: kir-dev/workflows/.github/workflows/docker-publish.yml@main
with:
docker-image: ${{ github.repository }}-${{matrix.component}}
docker-file: Dockerfile.${{matrix.component}}
docker-tag-config: type=raw,value=latest
environment: production

0 comments on commit 464f5c4

Please sign in to comment.