pre-commit-opentofu/.github/workflows/build-image-test.yaml
Workflow config file is invalid. Please check your config file: Line: 7 Column 5: Failed to match job-factory: Line: 21 Column 9: Failed to match run-step: Line: 22 Column 13: Failed to parse: got unexpected character '"' while lexing expression, expecting 'a'..'z', 'A'..'Z', '_', '0'..'9', ''', '}', '(', ')', '[', ']', '.', '!', '<', '>', '=', '&', '|', '*', ',', ' '. do you mean string literals? only single quotes are available for string delimiter Line: 23 Column 9: Unknown Property uses Line: 24 Column 9: Unknown Property with Line: 21 Column 9: Failed to match regular-step: Line: 22 Column 13: Failed to parse: got unexpected character '"' while lexing expression, expecting 'a'..'z', 'A'..'Z', '_', '0'..'9', ''', '}', '(', ')', '[', ']', '.', '!', '<', '>', '=', '&', '|', '*', ',', ' '. do you mean string literals? only single quotes are available for string delimiter Line: 7 Column 5: Failed to match workflow-job: Line: 9 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
Mohit Saxena 71647bb026
chore: Add Github Actions Workflow to build if Dockerfile updated (#318)
Co-authored-by: Maksym Vlasov <MaxymVlasov@users.noreply.github.com>
2022-01-11 21:36:35 +01:00

31 lines
789 B
YAML

name: "Build Dockerfile if changed and run smoke tests"
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get changed Dockerfile
id: changed-files-specific
uses: tj-actions/changed-files@v13.1
with:
files: |
Dockerfile
- name: Build if Dockerfile changed
if: steps.changed-files-specific.outputs.any_changed == "true"
uses: docker/build-push-action@v2
with:
context: .
build-args: |
INSTALL_ALL=true
platforms: linux/amd64
push: false
tags: |
ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}