Skip to content

Build image

Build image #48

Workflow file for this run

name: Build image
on:
workflow_dispatch:
inputs:
repo:
type: choice
description: Repository
options:
- aphid
- chrysididae
- cockroach
- coleorrhyncha
- coreoidea
- dermaptera
- embioptera
- grylloblattodea
- hoppers
- isoptera
- lygaeoidea
- mantodea
- mantophasmatodea
- orthoptera
- phasmida
- plecoptera
- psocodea
- zoraptera
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Build image
run: ./build_image.sh ${{ env.REGISTRY }} ${{ github.event.inputs.repo }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push image to registry
run: docker push ${{ env.REGISTRY }}/sfg-taxonpages/${{ github.event.inputs.repo }}