Skip to content

Commit 0f15cad

Browse files
authored
Merge pull request #1086 from nmvalera/master
ci/cd: Add YY.MM docker image tag on Docker Hub
2 parents 802feaf + 7c2e3f3 commit 0f15cad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
run: |
2020
REF=${{ github.ref }}
2121
echo ::set-output name=image_tag::$(echo $REF | sed 's/refs\/tags\/v//g')
22+
echo ::set-output name=image_tag_minor_latest::$(echo $REF | sed -e 's/refs\/tags\/v//g' -e 's/^\([[:digit:]]*\.[[:digit:]]*\).*/\1/')
2223
- name: 'Build and publish to Docker Hub'
2324
uses: docker/build-push-action@v1
24-
with:
25+
with:
2526
username: ${{ secrets.DOCKER_USERNAME }}
2627
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
2728
repository: ${{ secrets.DOCKER_REPO }}
28-
tags: ${{ steps.extract.outputs.image_tag }}
29+
tags: ${{ steps.extract.outputs.image_tag }}, ${{ steps.extract.outputs.image_tag_minor_latest }}
2930
add_git_labels: true
3031
build:
3132
name: 'Build binary for ${{ matrix.os }}'
@@ -125,7 +126,7 @@ jobs:
125126
echo "Last version: $last_version on $last_release_date"
126127
# pulling from git logs
127128
curl -q -s -H "Accept: application/vnd.github.v3+json" \
128-
"https://api.github.com/search/issues?q=repo:jpmorganchase/quorum+is:pr+is:merged+merged%3A>=$last_release_date+sort%3Aupdated-desc" | jq -r '"* " + (.items[]|.title + " #" + (.number|tostring))' \
129+
"https://api.github.com/search/issues?q=repo:ConsenSys/quorum+is:pr+is:merged+merged%3A>=$last_release_date+sort%3Aupdated-desc" | jq -r '"* " + (.items[]|.title + " #" + (.number|tostring))' \
129130
>> $file
130131
# pulling file hashes from Bintray
131132
echo "" >> $file

0 commit comments

Comments
 (0)