Skip to content

Merge pull request #276 from stackhpc/add_le_antelope #8

Merge pull request #276 from stackhpc/add_le_antelope

Merge pull request #276 from stackhpc/add_le_antelope #8

---
name: Publish container repositories
on:
push:
branches: [main]
paths:
- '.github/workflows/container-publish.yml'
- 'ansible/dev-pulp-container-publish.yml'
- 'ansible/inventory/group_vars/all/dev-pulp-containers'
- 'ansible/inventory/group_vars/all/kolla'
workflow_dispatch:
inputs:
filter:
description: Space-separated list of regular expressions matching images to publish
type: string
required: false
default: ""
distros:
description: Space-separated list of base distributions to publish
type: string
required: false
default: ""
env:
ANSIBLE_FORCE_COLOR: True
ANSIBLE_VAULT_PASSWORD_FILE: ${{ github.workspace }}/vault-pass
jobs:
container-publish:
name: Publish container repositories
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Preparing Vault password file
run: |
echo "$ANSIBLE_VAULT_PASSWORD" > "$ANSIBLE_VAULT_PASSWORD_FILE"
env:
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
- name: Installing dependencies
run: |
sudo apt update &&
sudo apt install -y python3-venv &&
python3 -m venv venv &&
source venv/bin/activate &&
pip install -U pip &&
pip install -r requirements.txt &&
ansible-galaxy collection install -r requirements.yml -p ansible/collections
- name: Publish container repositories
run: |
source venv/bin/activate &&
ansible-playbook -i ansible/inventory \
ansible/dev-pulp-container-publish.yml \
-e kolla_container_image_filter="'$FILTER'" \
-e kolla_base_distros_override="'$DISTROS'"
env:
FILTER: ${{ github.event.inputs.filter }}
DISTROS: ${{ github.event.inputs.distros }}