Skip to content

Update dependency typescript-eslint to v8.6.0 #317

Update dependency typescript-eslint to v8.6.0

Update dependency typescript-eslint to v8.6.0 #317

Workflow file for this run

name: frontend
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/frontend.yml"
- "frontend/**"
jobs:
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm run build
- name: Build docker image
id: docker_build
uses: docker/build-push-action@v6
with:
context: frontend
push: ${{ github.ref == 'refs/heads/main' }}
tags: blindernuka/billett-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy
if: github.ref == 'refs/heads/main'
run: |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d '
{
"service": "uka-billett",
"attributes": {
"frontend_image": "blindernuka/billett-frontend@${{ steps.docker_build.outputs.digest }}"
}
}'
env:
DEPLOYER_TOKEN: ${{ secrets.DEPLOYER_TOKEN }}