forked from ansible/awx-ee
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from upstream, streamline collections (#2)
Sync with upstream Add customizations: * Update CI for current packages and build pattern * Remove unused ansible collections * Add netaddr python module * Update ansible-core to v2.16.4 (latest release) * Update ansible-runner to v2.3.5 (latest release) * Update receptor to v1.4.4 (latest release) * Update python from 3.9 to 3.12 * Use python3.12 for build env
- Loading branch information
Showing
5 changed files
with
148 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build and Push latest image | ||
|
||
on: | ||
push: | ||
# build and push anytime commits are merged to main | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_push_latest: | ||
runs-on: ubuntu-22.04 | ||
name: Build and push latest tag from main on new commits | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
- name: Quay login | ||
run: | | ||
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin | ||
- name: Build and push image | ||
run: | | ||
docker buildx create --name awx-ee-buildx | ||
docker buildx use awx-ee-buildx | ||
ansible-builder create -v3 --output-file=Dockerfile | ||
docker buildx build \ | ||
--push \ | ||
--platform=linux/amd64 \ | ||
--tag=${{ vars.IMAGE_REGISTRY }}:latest \ | ||
context | ||
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,48 @@ | ||
--- | ||
|
||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
podman: | ||
runs-on: ubuntu-22.04 | ||
name: Podman | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
- name: Build EE with Podman | ||
run: | | ||
ansible-builder build -v3 -t ${{ vars.IMAGE_REGISTRY }}:latest --container-runtime=podman | ||
docker: | ||
runs-on: ubuntu-22.04 | ||
name: Docker | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
- name: Build EE with Docker | ||
run: | | ||
ansible-builder build -v3 -t ${{ vars.IMAGE_REGISTRY }}:latest --container-runtime=docker | ||
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,38 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
name: Release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
- name: Quay login | ||
run: | | ||
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin | ||
- name: Build and push image | ||
run: | | ||
docker buildx create --name awx-ee-buildx | ||
docker buildx use awx-ee-buildx | ||
ansible-builder create -v3 --output-file=Dockerfile | ||
docker buildx build \ | ||
--push \ | ||
--platform=linux/amd64 \ | ||
--tag=${{ vars.IMAGE_REGISTRY }}:${{ github.event.release.tag_name }} \ | ||
context | ||
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