Skip to content

CI conditional experiments #40

CI conditional experiments

CI conditional experiments #40

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: ${{ env.REGISTRY }}/${{ github.repository_owner }}/plato-${{ matrix.purpose }}

Check failure on line 17 in .github/workflows/docker.yaml

View workflow run for this annotation

GitHub Actions / Docker CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yaml (Line: 17, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
# 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 }}