Skip to content

Commit

Permalink
CICD: Remove manifest before creating new one (pingcap#63)
Browse files Browse the repository at this point in the history
remove old manifest first

Signed-off-by: David <[email protected]>
  • Loading branch information
AmoebaProtozoa authored and JaySon-Huang committed Jun 28, 2023
1 parent ce350b4 commit 8e666aa
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ jobs:
needs: ["multi-arch"]
if: ${{ inputs.gcr_target == 'tiflash' }}
steps:
- name: create-manifest
- name: remove-old-manifest
run: |
docker manifest rm xexplorersun/tiflash:v6.6.0
- name: create-new-manifest
run: |
docker manifest create xexplorersun/tiflash:v6.6.0 \
--amend xexplorersun/tiflash:cse-${{ github.sha }}-amd64 \
--amend xexplorersun/tiflash:cse-${{ github.sha }}-arm64
- name: push-manifest
xexplorersun/tiflash:cse-${{ github.sha }}-amd64 \
xexplorersun/tiflash:cse-${{ github.sha }}-arm64
- name: push-new-manifest
run: |
docker manifest push xexplorersun/tiflash:v6.6.0
Expand All @@ -87,11 +90,14 @@ jobs:
needs: ["multi-arch"]
if: ${{ inputs.gcr_target == 'tiflash-compute' }}
steps:
- name: create-manifest
- name: remove-old-manifest
run: |
docker manifest rm xexplorersun/tiflash-compute:v6.6.0
- name: create-new-manifest
run: |
docker manifest create xexplorersun/tiflash-compute:v6.6.0 \
--amend xexplorersun/tiflash:cse-${{ github.sha }}-amd64 \
--amend xexplorersun/tiflash:cse-${{ github.sha }}-arm64
xexplorersun/tiflash:cse-${{ github.sha }}-amd64 \
xexplorersun/tiflash:cse-${{ github.sha }}-arm64
- name: push-manifest
run: |
docker manifest push xexplorersun/tiflash-compute:v6.6.0

0 comments on commit 8e666aa

Please sign in to comment.