dev: replace deprecated command with environment file (#3558)
This commit is contained in:
parent
5a9bd925ce
commit
6d69ba12cd
20
.github/workflows/tag.yml
vendored
20
.github/workflows/tag.yml
vendored
@ -60,18 +60,18 @@ jobs:
|
|||||||
MAJOR=${TAG%.*}
|
MAJOR=${TAG%.*}
|
||||||
SHORT_COMMIT=${GITHUB_SHA::8}
|
SHORT_COMMIT=${GITHUB_SHA::8}
|
||||||
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
|
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
|
||||||
echo ::set-output name=tag_name::${TAG}
|
echo tag_name=${TAG} >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=major_tag::${MAJOR}
|
echo major_tag=${MAJOR} >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=short_commit::${SHORT_COMMIT}
|
echo short_commit=${SHORT_COMMIT} >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=date::${DATE}
|
echo date=${DATE} >> $GITHUB_OUTPUT
|
||||||
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
|
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
|
||||||
echo ::set-output name=full_tag_name::${TAG}-alpine
|
echo full_tag_name=${TAG}-alpine >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=full_major_tag::${MAJOR}-alpine
|
echo full_major_tag=${MAJOR}-alpine >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=latest_tag::latest-alpine
|
echo latest_tag=latest-alpine >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo ::set-output name=full_tag_name::${TAG}
|
echo full_tag_name=${TAG} >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=full_major_tag::${MAJOR}
|
echo full_major_tag=${MAJOR} >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=latest_tag::latest
|
echo latest_tag=latest >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user