Build #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |