Skip to content

Commit

Permalink
Merge pull request #5 from vania-pooh/master
Browse files Browse the repository at this point in the history
Tagging releases with major version too
  • Loading branch information
vania-pooh authored Nov 20, 2022
2 parents 89d3dbc + 710c3da commit 1714f63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Prepare release version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV

- name: Prepare major version
run: echo "MAJOR_RELEASE_VERSION=$(echo "$RELEASE_VERSION" | awk -F '.' '{ print $1"."$2; }')" >> $GITHUB_ENV

- uses: AButler/[email protected]
with:
files: 'dist/*'
Expand All @@ -43,6 +46,12 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ci/docker-push.sh $RELEASE_VERSION

- name: Major release image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ci/docker-push.sh $MAJOR_RELEASE_VERSION

- name: Latest release image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 1714f63

Please sign in to comment.