fix build-and-push.sh version resolution (#132)

This commit is contained in:
William Boman 2021-11-23 22:16:09 +01:00 committed by GitHub
parent 4d09668870
commit 31785401f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
name: Test docker containers
on: [push, pull_request]
on:
pull_request:
jobs:
build:

View file

@ -3,7 +3,7 @@
set -euo pipefail
VERSION="$GITHUB_REF"
VERSION="$(git describe --exact-match --tags HEAD)"
TAG="$VERSION"
MAJOR_TAG="$(sed -nre 's/^([0-9]+).*/\1/p' <<< "$VERSION")"
LATEST_TAG="latest"