Skip to content

Commit

Permalink
set image digest
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Aug 29, 2024
1 parent 2579be5 commit f3296fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/bsts_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,18 @@ jobs:
- name: checkout vcell
uses: actions/checkout@v3

- name: Login into Docker registries
run: |
# VCell Docker registry (GHCR)
echo ${{ secrets.ACTION_TOKEN }} | docker login ghcr.io -u ${{ secrets.ACTION_USER }} --password-stdin
- name: configure biosimulations.json
working-directory: ${{ github.workspace }}
run: |
docker pull ghcr.io/virtualcell/biosimulators_vcell:${{ github.event.inputs.biosimulators_vcell_tag }}
export IMAGE_DIGEST=$(docker image inspect ghcr.io/virtualcell/biosimulators_vcell:${{ github.event.inputs.biosimulators_vcell_tag }} | jq -r '.[0].RepoDigests[0]' | cut -d "@" -f 2-)
sed -i 's/_VC_VERSION_TAG_/${{github.event.inputs.biosimulators_vcell_tag}}/g' biosimulators.json
sed -i 's/_VC_DIGEST_TAG_/${IMAGE_DIGEST}/g' biosimulators.json
- name: save updated biosimulators.json
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -126,11 +134,6 @@ jobs:
python --version
python -m pip freeze
- name: Login into Docker registries
run: |
# VCell Docker registry (GHCR)
echo ${{ secrets.ACTION_TOKEN }} | docker login ghcr.io -u ${{ secrets.ACTION_USER }} --password-stdin
- id: validateCommitSimulator
name: Validate and commit simulator
uses: GabrielBB/xvfb-action@v1
Expand Down
1 change: 1 addition & 0 deletions biosimulators.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"image": {
"url": "ghcr.io/virtualcell/biosimulators_vcell:_VC_VERSION_TAG_",
"digest": "_VC_DIGEST_TAG_",
"format": {
"namespace": "EDAM",
"id": "format_3973",
Expand Down

0 comments on commit f3296fe

Please sign in to comment.