ci: Use the new container filename in our assets

The filename of the container image tarball that we published in our
release assets has changed from `container.tar.gz` to
`container-0.8.0-i686.tar.gz`. Change the scan action accordingly.
This commit is contained in:
Alex Pyrgiotis 2024-11-06 13:41:37 +02:00
parent c8411de433
commit 91932046f5
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -10,12 +10,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download container image for the latest release
- name: Download container image for the latest release and load it
run: |
VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | jq -r '.tag_name')
wget https://github.com/freedomofpress/dangerzone/releases/download/${VERSION}/container.tar.gz -O container.tar.gz
- name: Load container image
run: docker load -i container.tar.gz
CONTAINER_FILENAME=container-${VERSION}-i686.tar.gz
wget https://github.com/freedomofpress/dangerzone/releases/download/${VERSION}/${CONTAINER_FILENAME} -O ${CONTAINER_FILENAME}
docker load -i ${CONTAINER_FILENAME}
# NOTE: Scan first without failing, else we won't be able to read the scan
# report.
- name: Scan container image (no fail)