Skip to content

docs: simplify README project description #142

docs: simplify README project description

docs: simplify README project description #142

Workflow file for this run

name: ozma
on: push
jobs:
build:
name: Build
permissions:
contents: read
id-token: write
attestations: write
outputs:
artifact-id: ${{ steps.upload.outputs.artifact-id }}
artifact-url: ${{ steps.upload.outputs.artifact-url }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: yarn
- name: Build ozma-embedded
working-directory: ./ozma-embedded
run: |
yarn set version stable
yarn install --immutable
yarn build
- name: Install Dependencies
run: |
yarn set version stable
yarn install --immutable
yarn link ./ozma-embedded
- name: Check Formatting
run: |
yarn prettier -c
- name: Lint
run: |
yarn lint --no-fix --max-warnings 0
- name: Build
run: |
yarn build
- name: Upload Artifacts
id: upload
uses: actions/upload-artifact@v4
with:
name: ozma
path: ./dist
if-no-files-found: error
# - name: Attest
# uses: actions/attest-build-provenance@v1
# with:
# subject-path: dist/**
publish-docker:
name: Publish Docker Image
if: github.repository == 'ozma-io/ozma' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
needs: build
permissions:
contents: read
id-token: write
attestations: write
outputs:
digest: ${{ steps.push.outputs.digest }}
runs-on: ubuntu-22.04
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ozmaio/ozma
- name: Download Release
uses: actions/download-artifact@v4
with:
name: ozma
path: ./dist
- name: Build a Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile.ozma
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - name: Attest Docker Image
# uses: actions/attest-build-provenance@v1
# with:
# subject-name: ozmaio/ozma
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true