Skip to content

Build

Build #166

Workflow file for this run

name: Build
on:
workflow_run:
workflows: [test]
types: [completed]
branches: [main]
jobs:
docker:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
-
name: Install packages
run: npm install
-
name: Build dist
run: npm run build
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push Frontend
uses: docker/build-push-action@v3
with:
context: .
file: './Dockerfile'
push: true
tags: xorinzor/shoutz0r-frontend:latest