Skip to content

Commit

Permalink
fix build-and-push.sh version resolution (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored Nov 23, 2021
1 parent 4d09668 commit 3178540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test docker containers

on: [push, pull_request]
on:
pull_request:

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3178540

Please sign in to comment.