Skip to content
Snippets Groups Projects
Commit 7ac0ec6b authored by Thomas Woerner's avatar Thomas Woerner
Browse files

tests/azure/templates/build_container.yml: Use new image builder

The new infra/image/build.sh script is used instead of molecule.
parent 8153239e
No related branches found
No related tags found
No related merge requests found
...@@ -22,21 +22,17 @@ jobs: ...@@ -22,21 +22,17 @@ jobs:
retryCountOnTaskFailure: 5 retryCountOnTaskFailure: 5
displayName: Install tools displayName: Install tools
- script: pip install molecule-plugins[docker] "requests<2.29" - script: ansible-galaxy collection install containers.podman
retryCountOnTaskFailure: 5 retryCountOnTaskFailure: 5
displayName: Install molecule displayName: Install Ansible collections
- script: molecule create -s ${{ parameters.build_scenario_name }} - script: infra/image/build.sh ${{ parameters.build_scenario_name }}
retryCountOnTaskFailure: 5 retryCountOnTaskFailure: 5
displayName: Create test container displayName: Create test container
env:
ANSIBLE_LIBRARY: ./molecule
- script: | - script: |
docker stop ${{ parameters.build_scenario_name }} podman login -u="$QUAY_ROBOT_USERNAME" -p="$QUAY_ROBOT_TOKEN" quay.io
docker commit ${{ parameters.build_scenario_name }} quay.io/ansible-freeipa/upstream-tests:${{ parameters.container_name }} podman push quay.io/ansible-freeipa/upstream-tests:${{ parameters.container_name }}
docker login -u="$QUAY_ROBOT_USERNAME" -p="$QUAY_ROBOT_TOKEN" quay.io
docker push quay.io/ansible-freeipa/upstream-tests:${{ parameters.container_name }}
displayName: Save image and upload displayName: Save image and upload
env: env:
# Secrets needs to be mapped as env vars to work properly # Secrets needs to be mapped as env vars to work properly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment