Skip to content

Commit

Permalink
Merge pull request #28 from qvantor/fix/editor-fixes
Browse files Browse the repository at this point in the history
Fix/editor fixes
  • Loading branch information
qvantor authored Sep 7, 2023
2 parents f19c634 + d041dca commit 43ddab5
Show file tree
Hide file tree
Showing 8 changed files with 1,047 additions and 15 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test and Publish Containers
on:
push:
branches: ['main']
tags: ['*.*.*']
pull_request:
branches: ['main']

Expand Down Expand Up @@ -31,7 +32,7 @@ jobs:
path: dist

push_container:
if: github.ref == 'refs/heads/main'
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
needs: [build]
steps:
Expand All @@ -50,28 +51,24 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1

- name: Backend Build and push
uses: docker/build-push-action@v2
with:
file: ./apps/backend/Dockerfile
push: true
tags: waveditor/backend:${{ steps.package-version.outputs.current-version }}
tags: waveditor/backend:${{ github.ref_name }}
context: .

- name: Frontend Build and push
uses: docker/build-push-action@v2
with:
file: ./apps/wavemail/Dockerfile
push: true
tags: waveditor/frontend:${{ steps.package-version.outputs.current-version }}
tags: waveditor/frontend:${{ github.ref_name }}
context: .

deploy:
if: github.ref == 'refs/heads/main'
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
needs: [push_container]
steps:
Expand Down
Loading

0 comments on commit 43ddab5

Please sign in to comment.