Skip to content

Commit

Permalink
Merge pull request #54 overwrite crun in reusable-molecule.yml
Browse files Browse the repository at this point in the history
overwrite crun in reusable-molecule.yml
  • Loading branch information
mafalb authored Mar 2, 2024
2 parents ed9b66d + e6fcfe5 commit 30a6cfd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,20 @@ jobs:
filename: local-ci-0.1.0.tar.gz
targeted_branch: ${{ needs.selectbranch.outputs.ref }}

fixcrun:
crun:
runs-on: ubuntu-22.04
steps:
- name: Build Container Image
run: |
cat - >Containerfile <<EOF
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y systemd
CMD ["/lib/systemd/systemd"]
EOF
podman build --tag ghtest .
- name: Run Container fails
run: |
! podman run --systemd always -d ghtest
- name: Checkout workflows
uses: actions/checkout@v4
- name: Install crun
Expand All @@ -123,6 +134,8 @@ jobs:
checksums: CHECKSUMS
- name: Verify version of crun
run: crun --version|grep 1.14.4
- name: Run Container
run: podman run --systemd always -d ghtest

molecule:
needs:
Expand Down Expand Up @@ -175,5 +188,6 @@ jobs:
- molecule
- molecule_multiple_scenarios
- scenariocount
- fixcrun
- crun

...
5 changes: 5 additions & 0 deletions .github/workflows/reusable-molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
path: workflows
ref: ${{ inputs.targeted_branch }}

- name: Install crun
uses: ./workflows/.github/actions/fixcrun
with:
checksums: ./workflows/CHECKSUMS

- name: Install Ansible
uses: ./workflows/.github/actions/installansible
with:
Expand Down

0 comments on commit 30a6cfd

Please sign in to comment.