Skip to content

Commit

Permalink
[DDS-1845] Revert to step for awx-ee context creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Jan 19, 2024
1 parent 137ef26 commit 6aa4b4a
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,7 @@ on:
env:
REGISTRY: ghcr.io
jobs:
awx-ee-context:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./images/awx-ee
steps:
- uses: actions/checkout@v3

- name: Create the AWX-EE build instruction file
run: |
pip install --upgrade ansible-builder
ansible-builder create \
--output-filename Dockerfile \
--verbosity 3
buildx:
needs: awx-ee-context
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
strategy:
Expand All @@ -43,9 +28,6 @@ jobs:

- uses: actions/checkout@v3

- name: Troubleshoot awx-ee context
run: ls -al ./images/awx-ee

- name: Login to registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
Expand All @@ -71,6 +53,15 @@ jobs:
org.opencontainers.image.title=${{ matrix.images }}
org.opencontainers.image.description=${{ matrix.images }} image for Bay container platform
- name: Create the AWX-EE context
if: matrix.images == 'awx-ee'
run: |
pip install --upgrade ansible-builder
ansible-builder create \
--output-filename Dockerfile \
--verbosity 3
working-directory: ./images/awx-ee

- name: Build and push the images
uses: docker/[email protected]
with:
Expand Down

0 comments on commit 6aa4b4a

Please sign in to comment.