Skip to content

Commit

Permalink
feat: publish ecr step (aquasecurity#172)
Browse files Browse the repository at this point in the history
Co-authored-by: carolina valencia <[email protected]>
  • Loading branch information
krol3 and krol3 authored Jan 11, 2022
1 parent 2374238 commit 6805779
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,37 @@ jobs:
tag-semver: |
{{version}}
- name: Build and push - Docker/ECR
- name: Build and push - Docker
id: docker_build
uses: docker/build-push-action@v2
continue-on-error: true
with:
context: .
platforms: linux/amd64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
${{ env.ALIAS_DOCKER }}/${{ env.REP }}:${{ steps.date_version.outputs.version }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Build and push - ECR
id: ecr_build
uses: docker/build-push-action@v2
continue-on-error: true
with:
context: .
platforms: linux/amd64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
public.ecr.aws/${{ env.ALIAS_AWS }}/${{ env.REP }}:${{ steps.date_version.outputs.version }}
${{ env.ALIAS_DOCKER }}/${{ env.REP }}:latest
public.ecr.aws/${{ env.ALIAS_AWS }}/${{ env.REP }}:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: |
echo ${{ steps.docker_build.outputs.digest }}
echo ${{ steps.ecr_build.outputs.digest }}

0 comments on commit 6805779

Please sign in to comment.