GRN2-346: Final fix for github actions (#2511)

* Final fix to docker version code

* Final fix for release version code
This commit is contained in:
Ahmad Farhat 2021-02-04 19:02:13 -05:00 committed by GitHub
parent 27bc685b76
commit a608975b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -21,8 +21,11 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Step Short SHA
run: echo "::set-output short_sha=${GITHUB_SHA::8}"
- name: Compute Short SHA
uses: benjlevesque/short-sha@v1.2
id: short-sha
with:
length: 7
- name: Build and Push latest
uses: docker/build-push-action@v2
@ -31,4 +34,4 @@ jobs:
tags: |
bigbluebutton/greenlight:master
bigbluebutton/greenlight:latest
build-args: version_code=${{ steps.vars.outputs.short_sha }}
build-args: version_code=${{ steps.short-sha.outputs.sha }}

View File

@ -27,5 +27,5 @@ jobs:
tags: |
bigbluebutton/greenlight:latest
bigbluebutton/greenlight:v2
bigbluebutton/greenlight:${{ GITHUB_REF##*/ }}
build-args: version_code=${{ GITHUB_REF##*/release- }}
bigbluebutton/greenlight:${{ github.event.release.tag_name }}
build-args: version_code=${{ github.event.release.tag_name }}