mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-07 00:58:12 +00:00
Add humanize for relative times
This commit is contained in:
16
.github/workflows/push-container.yml
vendored
16
.github/workflows/push-container.yml
vendored
@@ -15,22 +15,8 @@ jobs:
|
||||
id: prep
|
||||
run: |
|
||||
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/rfd-notify
|
||||
VERSION=${GITHUB_REF##*/}
|
||||
|
||||
if [[ $GITHUB_REF == refs/heads/main ]]; then
|
||||
VERSION=1
|
||||
fi
|
||||
|
||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
fi
|
||||
|
||||
VERSION=2
|
||||
TAGS="${IMAGE_NAME}:${VERSION}"
|
||||
|
||||
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
|
||||
TAGS="$TAGS,${IMAGE_NAME}:2"
|
||||
fi
|
||||
|
||||
echo ::set-output name=tags::${TAGS}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
|
Reference in New Issue
Block a user