CI: Ensure Docker tags derived from refs include legal characters

This commit is contained in:
Calum MacRae 2021-07-12 20:03:40 +01:00
parent 48f7ae5ac2
commit 8a82e63fe1
No known key found for this signature in database
GPG Key ID: 53922D7E54A14F5D
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@ jobs:
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Get the current tag name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" | sed 's/\//_/g' >> $GITHUB_ENV
- name: Setup QEMU
uses: docker/setup-qemu-action@v1

View File

@ -1,6 +1,9 @@
FROM frolvlad/alpine-glibc as builder
FROM amd64/golang:1.16-alpine as builder
RUN apk add git go g++ curl jq
WORKDIR /
RUN curl -sL \
$(curl -s https://api.github.com/repos/chrislusf/seaweedfs/releases/latest \
| jq -r '.assets[]|select(.name=="linux_amd64.tar.gz")|.browser_download_url') \