-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DDS-1845] Moved awx-ee build step to independent workflow.
- Loading branch information
Showing
2 changed files
with
50 additions
and
17 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,49 @@ | ||
name: build-deploy-bay-images | ||
run-name: Build and deploy Bay images | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
- opened | ||
- synchronize | ||
schedule: | ||
- cron: '23 20 * * 0' | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
jobs: | ||
buildx: | ||
if: github.event.pull_request.merged == true || contains(fromJson('["schedule", "workflow_dispatch"]'), github.event_name) || github.event_name == 'pull_request' && startsWith(github.head_ref,'build/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Login to registry ${{ env.REGISTRY }} | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USER }} | ||
password: ${{ secrets.REGISTRY_TOKEN }} | ||
|
||
- name: Build and push AWX-EE | ||
run: | | ||
pip install --upgrade ansible-builder | ||
cd images/awx-ee | ||
ansible-builder build \ | ||
--file execution-environment.yml \ | ||
--build-arg PYCMD="/usr/local/bin/python3" \ | ||
--build-arg PKGMGR="/usr/bin/apt-get" \ | ||
--verbosity 3 | ||
- name: Build and push the images | ||
uses: docker/bake-action@v4 | ||
with: | ||
push: true | ||
workdir: ./images/awx-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