Skip to content

Commit

Permalink
use mixer_sif namespace for oras push
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed May 8, 2024
1 parent 168996c commit d320cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/container_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ jobs:
IFS= read -r first_tag <<EOF
$tags
EOF
echo "The first tag is: $first_tag"
echo "CSV-tags are: $csv_tags"
push_tags="$(printf $csv_tags | sed -e "s/mixer/mixer_sif/g")"
echo ${{ secrets.GITHUB_TOKEN }} | oras login --username ${{ github.repository_owner }} --password-stdin ghcr.io
docker pull kaczmarj/apptainer:latest
docker run --rm --privileged -v $(pwd):/work kaczmarj/apptainer build mixer.sif docker://"$first_tag"
oras push "$csv_tags" --artifact-type application/vnd.acme.rocket.config mixer.sif
oras push "$push_tags" mixer.sif
rm mixer.sif
shell: sh
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ cd path/to/repositories/mixer/singularity
mv mixer.sif mixer.sif.old # optional, just rename the old(er) file
apptainer pull docker://ghcr.io/comorment/mixer:<tag> # or
singularity pull docker://ghcr.io/comorment/mixer:<tag> # or
oras pull ghcr.io/comorment/mixer:<tag>
oras pull ghcr.io/comorment/mixer_sif:<tag>
```

where `<tag>` corresponds to a tag listed under [packages](https://github.com/comorment/mixer/pkgs/container/mixer),
such as `latest`, `main`, or `sha_<GIT SHA>`.
The `oras pull` statement

To pull the corresponding Docker image, issue
To pull the corresponding Docker image, issue:

```bash
docker pull ghcr.io/comorment/mixer:<tag>
Expand Down

0 comments on commit d320cf4

Please sign in to comment.