-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scaffold an execution-environment project using init subcommand
- Loading branch information
1 parent
72e0960
commit 351aa71
Showing
7 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
src/ansible_creator/resources/ee_project/.github/workflows/ci.yml.j2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Combine workflow for pull-request, push-to-main and release events. | ||
|
||
name: Execution environment build | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
types: [opened, reopened, synchronize] | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
ee-build: | ||
uses: ansible/ansible-content-actions/.github/workflows/ee-build.yml@main | ||
with: | ||
registry: ghcr.io | ||
# TODO: add secrests back to this section |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
context/ | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## This is a sample execution environment project to build and publish your EE. |
40 changes: 40 additions & 0 deletions
40
src/ansible_creator/resources/ee_project/execution-environment.yml.j2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
version: 3 | ||
|
||
images: | ||
base_image: | ||
name: quay.io/fedora/fedora:41 | ||
|
||
dependencies: | ||
# Use python3 | ||
python_interpreter: | ||
package_system: python3 | ||
python_path: /usr/bin/python3 | ||
|
||
ansible_core: | ||
package_pip: ansible-core | ||
|
||
ansible_runner: | ||
package_pip: ansible-runner | ||
|
||
system: | ||
- openssh-clients | ||
- sshpass | ||
|
||
python: | ||
- ansible-navigator | ||
- boto3 | ||
- requests | ||
|
||
galaxy: | ||
collections: | ||
- name: ansible.posix | ||
- name: ansible.utils | ||
|
||
additional_build_steps: | ||
append_base: | ||
- RUN $PYCMD -m pip install -U pip | ||
|
||
options: | ||
tags: | ||
- ansible_sample_ee |
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