Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/lf-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,23 @@ jobs:
--server https://galaxy.ansible.com \
--api-key "$ANSIBLE_GALAXY_TOKEN"

# Tagged without the registry prefix, so podman stores the image under
# localhost/. push-to-registry derives its push source from the bare
# `image` input and prefixes that with localhost/, while its existence
# check uses the bare name and still resolves a `ghcr.io/...` image.
# A registry-prefixed local name therefore passes the check and fails
# the push. Verified with podman 5.8.4 on Fedora 44.
- name: 'Build Execution Environment'
run: |
ansible-builder build \
--tag 'ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG1 }}' \
--tag '${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG1 }}' \
-vvv

- name: 'Re-tag the image'
run: |
podman tag \
'ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG1 }}' \
'ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG2 }}'
'${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG1 }}' \
'${{ env.GITHUB_REPOSITORY_OWNER_LOWERCASE }}/lfops_ee:${{ env.TAG2 }}'

- name: 'Push to GitHub Container Registry'
id: 'push-to-ghcr'
Expand Down