Skip to content

fix(deps): update dependency @oomol/oocana to v0.19.17 (#7) #28

fix(deps): update dependency @oomol/oocana to v0.19.17 (#7)

fix(deps): update dependency @oomol/oocana to v0.19.17 (#7) #28

Workflow file for this run

name: build image
on:
pull_request:
paths:
- ".Dockerfile"
- "package.json"
- "package-lock.json"
push:
paths:
- ".Dockerfile"
- "package.json"
- "package-lock.json"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo '//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' >> .npmrc
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
flavor: |
latest=auto
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.ref_type == 'tag' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
token=${{ secrets.GITHUB_TOKEN }}
secret-files: |
npmrc=.npmrc
file: .Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max