Skip to content

Bump @apollo/client from 3.11.5 to 3.11.8 in /frontend #98

Bump @apollo/client from 3.11.5 to 3.11.8 in /frontend

Bump @apollo/client from 3.11.5 to 3.11.8 in /frontend #98

Workflow file for this run

name: Build frontend
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
branches: [ main ]
paths: [ 'frontend/**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
working-directory: frontend/
run: npm install
- name: Build
working-directory: frontend/
run: npm run build
# - name: Lint
# working-directory: frontend/
# run: npm run lint
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: frontend
path: frontend/
retention-days: 1
publish:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: frontend
path: frontend/
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v5
with:
context: frontend/
push: true
tags: spoud/toeggelomat-frontend:latest
- name: Build and push tag
if: startsWith(github.event.ref, 'refs/tags/')
uses: docker/build-push-action@v5
with:
context: backend/
file: backend/src/main/docker/Dockerfile.jvm
push: true
tags: spoud/toeggelomat-backend:${{ github.ref_name }}