Set inject_facts_as_vars to false. #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image Test Build | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
imagestuff: | |
- '.dockerignore' | |
- 'ansible.cfg' | |
- 'Dockerfile' | |
- name: Build the Docker image | |
if: steps.filter.outputs.imagestuff == 'true' | |
run: docker build . --file Dockerfile --tag ansible-docker:$(date +%s) |