Skip to content

Run the build

Run the build #1

Workflow file for this run

name: Build
# on: [release]
on: [push]
env:
VERSION: '2.0.1'
IMAGE_NAME: 'pocket-ic:${{ env.VERSION }}'

Check failure on line 8 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 8, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.VERSION
jobs:
release:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build image
run: |
docker build -t ${{ env.IMAGE_NAME }} ./docker
- name: test
run: docker images ls | grep ${{ env.IMAGE_NAME }}