Skip to content

bump dependencies #1505

bump dependencies

bump dependencies #1505

Workflow file for this run

name: Bygg branch
on:
push:
branches:
- '*'
- '!master'
env:
IMAGE_BASE: ghcr.io/${{ github.repository }}/min-side-arbeidsgiver
jobs:
bygg:
name: Bygg branch
runs-on: ubuntu-latest
steps:
- name: Sjekk ut kode
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16.14.2'
registry-url: https://npm.pkg.github.com/
cache: 'npm'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- run: npm run lint
- run: npm run build
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Bygg, tag og push Docker-image
run: |
docker build --tag $IMAGE_BASE:$GITHUB_SHA .
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_REPOSITORY --password-stdin
docker push $IMAGE_BASE:$GITHUB_SHA