mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 12:24:43 +00:00
tests/azure/templates/build_container.yml: Use new image builder
The new infra/image/build.sh script is used instead of molecule.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user