Skip to content

CI conditional experiments #43

CI conditional experiments

CI conditional experiments #43

Workflow file for this run

name: Docker CI
on: push
env:
REGISTRY: ghcr.io
jobs:
docker-build:
runs-on: ubuntu-latest
strategy:
matrix:
purpose: [builder, emulator]
env:
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/plato-${{ matrix.purpose }}
# Experiments:
# [] Can I read env.IMAGE_NAME?
# [] Can I print git event name?
# [] Can I use if conditions for steps?
steps:
- name: Checkout repository
run: |
set -eux -o pipefail
echo ${{ env.IMAGE_NAME }}
echo ${{ github.event_name }}
echo ${{ github.event_name != 'pull_request' }}
docker image history ${{ env.IMAGE_NAME }}