Skip to content

reogranise build actions for docker build #1

reogranise build actions for docker build

reogranise build actions for docker build #1

name: GraphiQL explorer
on:
push:
branches: ["*"]
workflow_dispatch: {}
jobs:
concierge-graphql:
runs-on: ubuntu-latest
# The first two permissions are needed to interact with GitHub's OIDC Token endpoint.
# The second set of three permissions are needed to write test results back to GH
permissions:
id-token: write
contents: read
issues: read
checks: write
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
cache-dependency-path: explorer/yarn.lock
- run: yarn install --frozen-lockfile
name: Prepare to build explorer
working-directory: explorer
- run: yarn build
name: Build explorer
working-directory: explorer
- name: Build and push
uses: docker/build-push-action@v5
working-directory: explorer

Check failure on line 45 in .github/workflows/graphiql-explorer.yml

View workflow run for this annotation

GitHub Actions / GraphiQL explorer

Invalid workflow file

The workflow is not valid. .github/workflows/graphiql-explorer.yml (Line: 45, Col: 9): Unexpected value 'working-directory'
with:
push: true
tags: ghcr.io/guardian/concierge-graphql/graphiql-explorer:${{ github.run_number }}