diff --git a/containers/release/configure_release.sh b/containers/release/configure_release.sh
index 7c81f679eeee4a00f325bd6eede0b0858f81c378..0354ac43045b306fc199453d94c9a525771dad24 100644
--- a/containers/release/configure_release.sh
+++ b/containers/release/configure_release.sh
@@ -9,12 +9,7 @@ mkdir -p config
 
 cp /etc/profile.d/z10_spack_environment.sh config/spack-env.sh
 
-export BRANCH=$1
-if [ ${BRANCH} == "release" ]; then
-  export TAG="latest"
-else
-  export TAG="unstable"
-fi
+export TAG=$1
 
 ## Spack sets the man-path, which stops bash from using the default man-path
 ## We can fix this by appending a trailing colon to MANPATH
diff --git a/gitlab-ci/build_and_deploy.yml.in b/gitlab-ci/build_and_deploy.yml.in
index 135b2e38fc66f389a28a01c7bb5637648eebe54c..c97098f497a71b225ca4e50395f0f942992c9ceb 100644
--- a/gitlab-ci/build_and_deploy.yml.in
+++ b/gitlab-ci/build_and_deploy.yml.in
@@ -58,6 +58,9 @@ release:docker:
     - make $TARGET_RELEASE
     - echo "Publishing image $PUBLISH"
     - make $PUBLISH
+  artifacts:
+    paths:
+      - config
 
 release:singularity:
   stage: singularity