Skip to content

Commit

Permalink
include matrix elements into the list
Browse files Browse the repository at this point in the history
  • Loading branch information
kpplis committed Dec 5, 2024
1 parent 9aa08fd commit 2874d98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
registry: ${{ inputs.registryHostname }}
username: ${{ inputs.registryUsername }}
password: ${{ secrets.repoAccessToken }}
- name: Build and push primary image to GitHub
- name: Build and push image to GitHub
if: inputs.repository_kind == 'github' && matrix.containerfile_targets == ''
uses: docker/build-push-action@v6
with:
Expand All @@ -210,7 +210,7 @@ jobs:
${{ inputs.registryHostname }}/${{ inputs.registryOrg }}/${{ github.event.deployment.payload.name }}:latest
${{ inputs.registryHostname }}/${{ inputs.registryOrg }}/${{ github.event.deployment.payload.name }}:${{ steps.vars.outputs.version }}
${{ inputs.registryHostname }}/${{ inputs.registryOrg }}/${{ github.event.deployment.payload.name }}:${{ github.sha }}
- name: Build and push primary image to GitHub
- name: Build and push ${{ matrix.containerfile_targets }} image to GitHub
if: inputs.repository_kind == 'github' && matrix.containerfile_targets != ''
uses: docker/build-push-action@v6
with:
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
aws ecr create-repository --repository-name ${{ github.event.deployment.payload.name }}
LIFECYCLE_POLICY='{"rules":[{"rulePriority":1,"description":"Keep last 500 images","selection":{"tagStatus":"any","countType":"imageCountMoreThan","countNumber":500},"action":{"type":"expire"}}]}'
aws ecr put-lifecycle-policy --repository-name ${{ github.event.deployment.payload.name }} --lifecycle-policy-text "$LIFECYCLE_POLICY"
- name: Create ECR repository if it doesn't exist
- name: Create ${{ matrix.containerfile_targets }} ECR repository if it doesn't exist
if: inputs.repository_kind == 'ecr' && matrix.containerfile_targets != ''
run: |
aws ecr describe-repositories --repository-names ${{ github.event.deployment.payload.name }}-${{ matrix.containerfile_targets }} || \
Expand All @@ -256,7 +256,7 @@ jobs:
if: inputs.repository_kind == 'ecr'
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Build and push primary image to ECR
- name: Build and push image to ECR
if: inputs.repository_kind == 'ecr' && matrix.containerfile_targets == ''
uses: docker/build-push-action@v6
with:
Expand All @@ -276,7 +276,7 @@ jobs:
${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest
${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:${{ steps.vars.outputs.version }}
${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:${{ github.sha }}
- name: Build and push primary image to ECR
- name: Build and push ${{ matrix.containerfile_targets }} image to ECR
if: inputs.repository_kind == 'ecr' && matrix.containerfile_targets != ''
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 2874d98

Please sign in to comment.