Skip to content

Merge branch 'dev' of https://github.com/it-at-m/wjh into dev #22

Merge branch 'dev' of https://github.com/it-at-m/wjh into dev

Merge branch 'dev' of https://github.com/it-at-m/wjh into dev #22

Workflow file for this run

name: build and test
on: [push]
jobs:
compliance:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Advance Security Policy as Code
uses: advanced-security/policy-as-code@v2.4.1
with:
policy: it-at-m/policy-as-code
policy-path: default.yaml
token: ${{ secrets.GITHUB_TOKEN }}
argvs: "--disable-dependabot --disable-secret-scanning --disable-code-scanning --display"
build:
runs-on: ubuntu-latest
name: Build the package
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: install
working-directory: ./wjh
run: npm install --no-package-lock
env:
CYPRESS_INSTALL_BINARY: 0
- name: build
working-directory: ./wjh
run: npm run build --no-package-lock
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./wjh/dist
build-and-push-image-to-ghcr:
runs-on: ubuntu-latest
steps:
- name: Echo Env Vars through Context
run: |
echo "$GITHUB_CONTEXT"
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push untested Docker image to GHCR
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}