Skip to content

Commit

Permalink
Update docker-sync.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yaming116 authored Jun 11, 2024
1 parent b47bdbb commit 5604250
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5604250

Please sign in to comment.