Skip to content

Commit

Permalink
feat: Set the latest/release image to R 4.4.1 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy authored Nov 5, 2024
1 parent a86f33c commit 70e679e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 ###########
Expand Down

0 comments on commit 70e679e

Please sign in to comment.