Skip to content

Added authorization check #16

Added authorization check

Added authorization check #16

Workflow file for this run

name: build-library
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn
- run: yarn build
build_docker-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to docker repo
uses: docker/login-action@v2
with:
registry: docker.infra.phoenixlan.no
username: ${{ secrets.REGISTRY_USERNAME}}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
build-args: |
API_URL=https://api.test.phoenixlan.no
API_OAUTH_CLIENT_ID=phoenix-checkin
APP_HOST=checkin.test.phoenixlan.no
APP_PROTOCOL=https
file: "docker/production/Dockerfile"
context: .
push: true
tags: |
docker.infra.phoenixlan.no/web/${{ github.event.repository.name }}-test:latest
docker.infra.phoenixlan.no/web/${{ github.event.repository.name }}-test:${{ github.sha }}
build_docker-prod:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to docker repo
uses: docker/login-action@v2
with:
registry: docker.infra.phoenixlan.no
username: ${{ secrets.REGISTRY_USERNAME}}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
build-args: |
API_URL=https://api.phoenixlan.no
API_OAUTH_CLIENT_ID=phoenix-checkin
APP_HOST=checkin.phoenixlan.no
APP_PROTOCOL=https
file: "docker/production/Dockerfile"
context: .
push: true
tags: |
docker.infra.phoenixlan.no/web/${{ github.event.repository.name }}-prod:latest
docker.infra.phoenixlan.no/web/${{ github.event.repository.name }}-prod:${{ github.sha }}