Changed from 5v5 to 3v3 as requested by compo admin #65
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-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 | |
APP_HOST=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 | |
APP_HOST=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 }} | |