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 4840d8c commit f5c01a1
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 @@ -394,6 +394,7 @@ jobs:
- name: Covert output to env
run: |
echo "SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}" >> $GITHUB_ENV
echo "SRS_TAG_DATE=${{ needs.envs.outputs.SRS_TAG }}-$(date +%y-%m-%d)" >> $GITHUB_ENV
################################################################
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -416,6 +417,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 }}
runs-on: ubuntu-20.04

docker-aliyun:
Expand All @@ -428,6 +435,7 @@ jobs:
- name: Covert output to env
run: |
echo "SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}" >> $GITHUB_ENV
echo "SRS_TAG_DATE=${{ needs.envs.outputs.SRS_TAG }}-$(date +%y-%m-%d)" >> $GITHUB_ENV
################################################################
- name: Login aliyun hub
uses: docker/login-action@v2
Expand All @@ -441,5 +449,6 @@ 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 }}
runs-on: ubuntu-20.04

0 comments on commit f5c01a1

Please sign in to comment.