Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #5 from GSA/feautre/fcs-freeze
Browse files Browse the repository at this point in the history
get a static war file
  • Loading branch information
adborden authored Feb 6, 2021
2 parents 0829348 + cd609bc commit bf414f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
---

catalog_fgdc2iso_pinned_war_url: https://api.github.com/repos/GSA/catalog-fgdc2iso/releases/32097298/assets
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
dest: /etc/cron.d/clean-tmp-files
mode: 0644

# We used to use the latest war file until we moved to 'freezing' our repos
# See: https://github.com/GSA/datagov-deploy/issues/2745
# If you need to change this url without doing another release, add a variable to datagov-deploy
- name: Find latest release of .war file
shell: curl -s https://api.github.com/repos/gsa/catalog-fgdc2iso/releases/latest | jq -r ".assets[] | .browser_download_url"
shell: curl -s {{ catalog_fgdc2iso_pinned_war_url }} | jq -r '.[0].browser_download_url'
register: latest_war_url
tags: skip_ansible_lint
args:
Expand Down

0 comments on commit bf414f6

Please sign in to comment.