Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhanasand committed Feb 10, 2025
1 parent 4dc0272 commit 78904d3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ jobs:
[galaxy]
server_list = artifactory_collections
[galaxy_server.artifactory_collections]
url = https://$JFROG_ID.jfrog.io/artifactory/api/ansible/collections/
url = https://{{ jfrog_id }}.jfrog.io/artifactory/api/ansible/collections/
EOL
cat > inventory.ini <<EOL
Expand All @@ -453,12 +453,18 @@ jobs:
tasks:
- name: Download a file via Artifactory proxy
ansible.builtin.get_url:
url: "https://$JFROG_EMAIL:$JFROG_TOKEN@$JFROG_ID.jfrog.io/artifactory/github/eirikhanasand/lsm/blob/main/README.md"
url: "https://{{ JFROG_EMAIL }}:{{ JFROG_TOKEN }}@{{ JFROG_ID }}.jfrog.io/artifactory/github/eirikhanasand/lsm/blob/main/README.md"
dest: ./README.md
EOL
# Runs the playbook with proxy settings
ansible-playbook -i inventory.ini test_proxy.yml
ansible-playbook -i inventory.ini test_proxy.yml -e "JFROG_ID=$JFROG_ID" -e "JFROG_EMAIL=$JFROG_EMAIL" -e "JFROG_TOKEN=$JFROG_TOKEN" 2>&1 | tee ansible.log || {
if grep -q "409" ansible.log; then
echo "409 success"
else
exit 1
fi
}
- name: test_bower
run: |
Expand Down

0 comments on commit 78904d3

Please sign in to comment.