Skip to content

Commit

Permalink
test passing the version tag in via and ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
bdklahn committed Oct 8, 2024
1 parent e1a1286 commit 9815605
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.meta.outputs.tags[2] }}
secrets: |
"gh_token=${{ secrets.GH_TOKEN }}"
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM ghcr.io/nssac/mambascif

ARG VERSION
ENV VERSION=${VERSION:-v0.0.0}

RUN mkdir -p /run/secrets

COPY config.json /
Expand Down
9 changes: 8 additions & 1 deletion sciduct.scif
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ export VERSION


%apprun sciduct
jq -r ".version=\"$VERSION\"" $CONFIG_JSON
jq -r ".version=\"$VERSION\"" $CONFIG_JSON


%appinstall sciduct_version
echo $VERSION > /sciduct_version.txt

%apprun sciduct_version
cat /sciduct_version.txt

0 comments on commit 9815605

Please sign in to comment.