forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[.github/workflows] update build/release workflow to use IRSA
- Loading branch information
Showing
2 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,8 @@ name: 'Release Action' | |
description: 'Build and Push the application docker image' | ||
|
||
inputs: | ||
aws-access-key-id: | ||
description: 'AWS Access Key ID' | ||
required: true | ||
aws-secret-access-key: | ||
description: 'AWS Secret Access Key' | ||
aws-role-to-assume: | ||
description: 'AWS Role to Assume' | ||
required: true | ||
public-registry-id: | ||
description: 'Public ECR Registry ID' | ||
|
@@ -22,12 +19,17 @@ runs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: configure aws credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: ${{ inputs.aws-role-to-assume }} | ||
role-session-name: ${{ inputs.aws-role-session-name }} | ||
aws-region: us-east-1 | ||
|
||
- name: Login to Amazon ECR | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: public.ecr.aws | ||
username: ${{ inputs.aws-access-key-id }} | ||
password: ${{ inputs.aws-secret-access-key }} | ||
|
||
- name: Build images | ||
run: make -f .github/actions/release/Makefile build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters