Skip to content

ci: use correct build context and dockerfile #88

ci: use correct build context and dockerfile

ci: use correct build context and dockerfile #88

Workflow file for this run

name: Retro CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "19"
- name: Install dependencies
run: npm ci
- name: Prettier check
run: npm run format:check
- name: Lint
run: npm run lint
- name: Build app
run: npm run build
- name: Install playwright browsers
if: ${{ vars.SKIP_E2E != 'true' }}
run: npx playwright install --with-deps
- name: Run e2e tests
if: ${{ vars.SKIP_E2E != 'true' }}
run: npm run e2e
release:
runs-on: ubuntu-latest
environment: release
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "19"
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build
- name: Publish Frontend Docker Image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
default_branch: master
name: retroapp/retro-frontend
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "latest"
dockerfile: ./packages/frontend/Dockerfile
- name: Publish Backend Docker Image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
default_branch: master
name: retroapp/retro-backend
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "latest"
dockerfile: ./packages/backend/Dockerfile