Skip to content

Commit cc18c36

Browse files
Remove image promotion from release workflow (#406)
*Issue #, if available:* *Description of changes:* Remove image promotion from release workflow By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Signed-off-by: Renan Magagnin <[email protected]>
1 parent c90f6af commit cc18c36

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

.github/workflows/release.yaml

-57
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ on:
66
tags:
77
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
88

9-
# This workflow copies image from testing private repository to:
10-
# 1) private ARS source repository
11-
# 2) public repository
12-
env:
13-
GIT_TAG: ${{ github.ref_name }}
14-
TAG_PASSED: "test_passed_${{ github.sha }}"
15-
IMAGE_NAME: "s3-csi-driver"
16-
PUBLIC_REGISTRY: ${{ vars.PUBLIC_REGISTRY }}
17-
ARS_REGISTRY: ${{ vars.ARS_REGISTRY }}
189
jobs:
1910
build:
2011
# this is to prevent the job to run at forked projects
@@ -25,54 +16,6 @@ jobs:
2516
id-token: write
2617
contents: write
2718
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
- name: Set up Docker Buildx
31-
id: buildx
32-
uses: docker/setup-buildx-action@v1
33-
- name: Set up crane
34-
uses: imjasonh/[email protected]
35-
36-
- name: Configure AWS Credentials from CI Trusted account
37-
uses: aws-actions/configure-aws-credentials@v4
38-
with:
39-
role-to-assume: ${{ vars.CI_TRUSTED_IAM_ROLE }}
40-
aws-region: ${{ vars.AWS_CI_TRUSTED_REGION }}
41-
- name: Login to Amazon ECR (trusted)
42-
id: login-ecr-trusted
43-
uses: aws-actions/amazon-ecr-login@v1
44-
45-
- name: Configure AWS Credentials from Prod account
46-
uses: aws-actions/configure-aws-credentials@v4
47-
with:
48-
role-to-assume: ${{ vars.PROD_IAM_IMAGE_ROLE }}
49-
aws-region: ${{ vars.AWS_PROD_ECR_REGION }}
50-
- name: Login to Amazon ECR (prod)
51-
id: login-ecr-prod
52-
uses: aws-actions/amazon-ecr-login@v1
53-
54-
- name: Configure AWS Credentials from Prod account (for ECR public)
55-
if: ${{ env.PUBLIC_REGISTRY != '' }}
56-
uses: aws-actions/configure-aws-credentials@v4
57-
with:
58-
role-to-assume: ${{ vars.PROD_IAM_IMAGE_ROLE }}
59-
aws-region: us-east-1
60-
- name: Login to Amazon ECR (public)
61-
if: ${{ env.PUBLIC_REGISTRY != '' }}
62-
id: login-ecr-public
63-
uses: aws-actions/amazon-ecr-login@v1
64-
with:
65-
registry-type: public
66-
67-
- name: Promote image
68-
env:
69-
SOURCE_REGISTRY: ${{ steps.login-ecr-trusted.outputs.registry }}
70-
run: |
71-
crane copy ${SOURCE_REGISTRY}/${IMAGE_NAME}:${TAG_PASSED} ${ARS_REGISTRY}:${GIT_TAG}
72-
if [ -n "${PUBLIC_REGISTRY}" ]; then
73-
crane copy ${SOURCE_REGISTRY}/${IMAGE_NAME}:${TAG_PASSED} ${PUBLIC_REGISTRY}:${GIT_TAG}
74-
fi
75-
7619
- name: Create Release
7720
id: create-release
7821
uses: actions/create-release@v1

0 commit comments

Comments
 (0)