Skip to content

Commit

Permalink
get ubuntu & rocker version
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-abel-inwt committed Dec 8, 2023
1 parent abecb1a commit e132a3b
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/retrieve_last_pushed_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,27 @@ jobs:
steps:
- name: extract ubuntu image
run: |
UBUNTUTAG=curl -sSL https://raw.githubusercontent.com/rocker-org/rocker-versioned2/master/dockerfiles/r-ver_$RVERSION.Dockerfile \
| grep "FROM" | cut -d ':' -f 2
UBUNTUTAG=$(curl -sSL https://raw.githubusercontent.com/rocker-org/rocker-versioned2/master/dockerfiles/r-ver_$RVERSION.Dockerfile \
| grep "FROM" | cut -d ':' -f 2)
- name: extract rocker last_pushed_tag date
uses: sergeysova/jq-action@v2
with:
cmd:
ROCKERDATE=curl -s https://hub.docker.com/v2/repositories/rocker/r-ver/tags/$RVERSION \
| jq -r ".tag_last_pushed"'
# - name: extract rocker last_pushed_tag date
# uses: sergeysova/jq-action@v2
# with:
# cmd:
# ROCKERDATE=$(curl -s https://hub.docker.com/v2/repositories/rocker/r-ver/tags/$RVERSION \
# | jq -r ".tag_last_pushed")'
#
# - name: extract ubuntu last_pushed_tag date
# uses: sergeysova/jq-action@v2
# with:
# cmd:
# UBUNTUDATE=curl -s https://hub.docker.com/v2/repositories/library/ubuntu/tags/$UBUNTUTAG \
# | jq -r ".tag_last_pushed"'

- name: extract ubuntu last_pushed_tag date
uses: sergeysova/jq-action@v2
with:
cmd:
UBUNTUDATE=curl -s https://hub.docker.com/v2/repositories/library/ubuntu/tags/$UBUNTUTAG \
| jq -r ".tag_last_pushed"'

- name: Disp
- name: Display Vars
run: |
echo "rocker/r-ver:$RVERSION - last_pushed_tag date: $ROCKERDATE"
echo "ubuntu:$UBUNTUTAG - last_pushed_tag date: $UBUNTUDATE"
echo "rocker/r-ver:$RVERSION"
#echo "last_pushed_tag date: $ROCKERDATE"
echo "ubuntu:$UBUNTUTAG"
#echo "last_pushed_tag date: $UBUNTUDATE"

0 comments on commit e132a3b

Please sign in to comment.