Skip to content

update scaffold search #17

update scaffold search

update scaffold search #17

name: Build and Publish
on:
push:
branches:
- main
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Manual run'
required: false
type: boolean
jobs:
publish:
name: Publish to ghcr.io
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./Dockerfile
image: ghcr.io/${{ github.repository }}/amrkg
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
uses: docker/metadata-action@v4
id: meta
with:
images: ${{ matrix.image }}
tags: |
type=raw,value={{date 'YYYYMMDD'}}
- name: Log in
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v2
with:
context: .
push: "${{ github.event_name != 'pull_request' }}"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: ${{ matrix.dockerfile }}