diff --git a/README.md b/README.md index 46d7b7a..b2e7f35 100644 --- a/README.md +++ b/README.md @@ -66,24 +66,6 @@ This GitHub action allows you to run [Molecule](https://molecule.readthedocs.io/ ## Usage To use the action simply create an `main.yml` (or choose custom `*.yml` name) in the `.github/workflows/` directory. -The `molecule.yml` also has to be configured to use QEMU like this: -```yml -driver: - name: vagrant - provider: - name: qemu -platforms: - - name: instance - provider_options: - qemu_dir: /usr/bin/ - arch: x86_64 - machine: q35 - cpu: max - net_device: virtio-net-pci - provider_raw_config_args: - - extra_qemu_args = %w(-vga std) -``` - ### Basic example: ```yaml @@ -96,13 +78,31 @@ jobs: - uses: actions/checkout@v2 with: path: "${{ github.repository }}" - - uses: redlinetriad/molecule-action@v2 + - uses: redlinetriad/molecule-action@v1 ``` >NOTE: By default molecule is going to look for configuration at `molecule/*/molecule.yml`, so if option `molecule-working-dir` is not provided, >checkout action needs to place the file in ${{ github.repository }} in order for Molecule to find your role. If your role is placed somewhere else >in the repository, ensure that `molecule-working-dir` is set up accordingly, in order to `cd` to that directory before issuing `molecule` command. +The `molecule.yml` also has to be configured to use QEMU like this: +```yml +driver: + name: vagrant + provider: + name: qemu +platforms: + - name: instance + provider_options: + qemu_dir: /usr/bin/ + arch: x86_64 + machine: q35 + cpu: max + net_device: virtio-net-pci + provider_raw_config_args: + - extra_qemu_args = %w(-vga std) +``` + ### Advanced example: ```yaml @@ -134,7 +134,7 @@ jobs: with: path: "${{ github.repository }}" - name: Molecule - uses: redlinetriad/molecule-vagrant-qemu-action@v0.1.0 + uses: redlinetriad/molecule-vagrant-qemu-action@v1 with: molecule_options: --debug --base-config molecule/_shared/base.yml molecule_command: test @@ -143,7 +143,7 @@ jobs: ANSIBLE_FORCE_COLOR: '1' ``` -> TIP: N.B. Use `redlinetriad/molecule-vagrant-qemu-action@v0.1.0` or any other valid tag, or branch, or commit SHA instead of `v0.1.0` to pin the action to use a specific version. +> TIP: N.B. Use `redlinetriad/molecule-vagrant-qemu-action@v1` or any other valid tag, or branch, or commit SHA instead of `v1` to pin the action to use a specific version. ## Troubleshooting If you see this error while you executing `apt_key` task diff --git a/action.yml b/action.yml index a3c8611..136e8ab 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,7 @@ inputs: runs: using: docker - image: docker://ghcr.io/redlinetriad/molecule-vagrant-qemu-action:v0.1.0 + image: docker://ghcr.io/redlinetriad/molecule-vagrant-qemu-action:v1 env: ANSIBLE_ASYNC_DIR: "/tmp/.ansible_async" ANSIBLE_FORCE_COLOR: "1"