Skip to content

Commit

Permalink
CI: Use setup action in container-publish.yml
Browse files Browse the repository at this point in the history
This somehow missed the DRY conversion.
  • Loading branch information
markgoddard committed Feb 2, 2024
1 parent 604be26 commit e061754
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- 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: Setup Release Train & dependencies
uses: ./.github/actions/setup
with:
vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }}

- 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'" \
Expand Down

0 comments on commit e061754

Please sign in to comment.