From 70e679ed7803fed1236d17696398e146c226119f Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:45:30 -0600 Subject: [PATCH] feat: Set the latest/release image to R 4.4.1 (#197) --- .github/workflows/push-docker-image.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 955db5d5..eb7f50c5 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -35,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - tags: ["devel", "latest", "${{ needs.get_old_release.outputs.oldrel }}"] + tags: ["devel", "4.4.1", "${{ needs.get_old_release.outputs.oldrel }}"] # Token permissions permissions: @@ -53,14 +53,13 @@ jobs: run: | package_name=$(grep "Package:" DESCRIPTION | awk '{print $NF}') r_version="${{ matrix.tags }}" + image_name="${package_name}-${r_version}" ########### LATEST aka RELEAESE IMAGE NAME ########### - if [ "${{ matrix.tags }}" == "latest" ]; then + if [ "$r_version" == "4.4.1" ]; then image_name="${package_name}-release" - else - image_name="${package_name}-${{ matrix.tags }}" fi ########### DEVEL IMAGE NAME ########### - if [ "${{ matrix.tags }}" == "devel" ]; then + if [ "$r_version" == "devel" ]; then R_REPOS="https://packagemanager.posit.co/cran/__linux__/focal/latest" fi ########### OLDREL IMAGE NAME ###########