Skip to content

Commit

Permalink
Support tag with date.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 9, 2023
1 parent 0a69be3 commit 47f4e5e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
run: |
SRS_TAG=${{ needs.env-prod.outputs.SRS_TAG }}
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
echo "SRS_TAG_DATE=$SRS_TAG$(date +%y-%m-%d)" >> $GITHUB_ENV
################################################################
# Git checkout
- name: Checkout repository
Expand Down Expand Up @@ -70,6 +71,12 @@ jobs:
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--output "type=image,push=true" \
-t ossrs/srs:$SRS_TAG .
- name: Copy to docker registry
uses: akhilerm/[email protected]
with:
src: ossrs/srs:${{ env.SRS_TAG }}
dst: |
ossrs/srs:${{ env.SRS_TAG_DATE }}
outputs:
SRS_DOCKER_PROD_DONE: ok

Expand All @@ -85,6 +92,7 @@ jobs:
run: |
SRS_TAG=${{ needs.env-prod.outputs.SRS_TAG }}
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
echo "SRS_TAG_DATE=$SRS_TAG$(date +%y-%m-%d)" >> $GITHUB_ENV
################################################################
# Aliyun ACR
- name: Login aliyun hub
Expand All @@ -99,6 +107,7 @@ jobs:
src: ossrs/srs:${{ env.SRS_TAG }}
dst: |
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:${{ env.SRS_TAG }}
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:${{ env.SRS_TAG_DATE }}
outputs:
SRS_ALIYUN_PROD_DONE: ok

Expand Down

0 comments on commit 47f4e5e

Please sign in to comment.