Files
fingerprint-chromium/.github/workflows/publish.yml
T
rogee 72b5e78e26
Build and publish image / image (push) Successful in 2m13s
HH-686: associate OCI package with repository (#2)
2026-08-26 18:55:32 +08:00

31 lines
831 B
YAML

name: Build and publish image
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "17 3 * * *"
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check scripts
run: ./tests/check.sh
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username "${{ github.actor }}" --password-stdin
- name: Build image
env:
OCI_REVISION: ${{ github.sha }}
OCI_SOURCE: https://github.com/rogeecn/fingerprint-chromium
PUSH: ${{ github.event_name != 'pull_request' }}
run: ./scripts/build.sh ghcr.io/rogeecn/fingerprint-chromium