Skip to content

Merge pull request #5 from RADAR-base/security/upgrade #17

Merge pull request #5 from RADAR-base/security/upgrade

Merge pull request #5 from RADAR-base/security/upgrade #17

Workflow file for this run

# Continuous integration, including test and integration test
name: Main test
# Run in master and dev branches and in all pull requests to those branches
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# Build and test the code
node:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: 'package-lock.json'
# Compile the code
- name: Install dependencies
run: npm install
# Compile the code
- name: Build code
run: npm run build
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist
retention-days: 5
dockerFrontend:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: radarbase/radar-home
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Setup docker build environment
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker
uses: docker/build-push-action@v3
with:
context: .
load: true
tags: ${{ env.DOCKER_IMAGE }}
- name: Inspect docker image
run: docker image inspect ${{ env.DOCKER_IMAGE }}