Skip to content

Commit a7c62e7

Browse files
committed
Use ansible-navigator to test the built EE image and print the installed collections info
1 parent 659056a commit a7c62e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ee-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ jobs:
147147
echo "#### EE Testing" >> $COMMANDS_FILE
148148
echo "" >> $COMMANDS_FILE
149149
echo "\`\`\`" >> $COMMANDS_FILE
150-
podman run -it ${{ env.EE }}:${{ env.IMAGE_TAG }} ansible-navigator collections --eei ${{ env.IMAGE_REGISTRY }}/${{ github.repository_owner }}/${{ env.EE }}:${{ env.IMAGE_TAG }} --mode stdout --pp missing --format json | jq '[.collections[] | {name, version: .collection_info.version}]' | yq --prettyPrint >> $COMMANDS_FILE
150+
podman run -it ${{ env.EE }}:${{ env.IMAGE_TAG }} ansible-navigator --version >> $COMMANDS_FILE
151+
ansible-navigator collections --eei ${{ env.IMAGE_REGISTRY }}/${{ github.repository_owner }}/${{ env.EE }}:${{ env.IMAGE_TAG }} --mode stdout | tee output.txt
152+
grep "known_as" output.txt | tee -a $COMMANDS_FILE
151153
echo "\`\`\`" >> $COMMANDS_FILE
152154
echo "" >> $COMMANDS_FILE
153155
echo "#### Ansible version" >> $COMMANDS_FILE

0 commit comments

Comments
 (0)