From 5604250da2b85eadc86256982c0d0defa4e6b429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=96=84=E6=98=8E?= Date: Tue, 11 Jun 2024 14:48:27 +0800 Subject: [PATCH] Update docker-sync.yaml --- .github/workflows/docker-sync.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-sync.yaml b/.github/workflows/docker-sync.yaml index 53577f8..18b3305 100644 --- a/.github/workflows/docker-sync.yaml +++ b/.github/workflows/docker-sync.yaml @@ -19,25 +19,29 @@ jobs: build: name: sync runs-on: ubuntu-latest + outputs: + output1: ${{ steps.pare.outputs.src }} + output2: ${{ steps.pare.outputs.dist }} steps: - name: Check out code uses: actions/checkout@v2 - name: pare trigger + id: pare run: | data=`cat trigger.txt` src=$(echo $data | awk '{print $1}') dist=$(echo $data | awk '{print $2}') - echo "src=${src}" >> "$GITHUB_ENV" - echo "dist=${dist}" >> "$GITHUB_ENV" + echo "src=${src}" >> "$GITHUB_OUTPUT" + echo "dist=${dist}" >> "$GITHUB_OUTPUT" - name: Copy beta to ECR uses: truemark/skopeo-copy-action@v1 with: - src-image: "docker://${{src}}" - dest-image: "docker://${{dist}}" + src-image: "docker://${{ steps.pare.outputs.src }}" + dest-image: "docker://${{ steps.pare.outputs.dist }}" dest-username: "${{ secrets.ALIYUN_REGISTRY_USER }}" dest-password: "${{ secrets.ALIYUN_REGISTRY_PASSWORD }}" multi-arch: "all"