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 <8039876+AmoebaProtozoa@users.noreply.github.com>
AmoebaProtozoa authored and JaySon-Huang committed Oct 8, 2023
1 parent b8f7e46 commit ca7286c
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
@@ -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
@@ -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 ca7286c

Please sign in to comment.