Build ALL images #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build ALL images | |
on: | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
repo: | |
- aphid | |
- chrysididae | |
- cockroach | |
- coleorrhyncha | |
- coreoidea | |
- dermaptera | |
- embioptera | |
- grylloblattodea | |
- hoppers | |
- isoptera | |
- lygaeoidea | |
- mantodea | |
- mantophasmatodea | |
- orthoptera | |
- phasmida | |
- plecoptera | |
- psocodea | |
- zoraptera | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Build image | |
run: ./build_image.sh ${{ env.REGISTRY }} ${{ matrix.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/${{ matrix.repo }} |