Skip to content

Commit

Permalink
Merge pull request #9 from adorsys/ArmandMeppa-patch-1
Browse files Browse the repository at this point in the history
fix(ci): update docker build and push steps in delivery workflow
  • Loading branch information
bengo237 authored Feb 28, 2024
2 parents b7cb0dd + 0884327 commit af445b3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

#- name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}
#- name: Build container
# uses: docker/build-push-action@v5
Expand All @@ -62,14 +64,12 @@ jobs:
# PAT=${{ secrets.PAT }}

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.REGISTRY }}
IMAGE_TAG: ${{ github.sha }}
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
USERNAME=${{ github.actor }}
PAT=${{ secrets.PAT }}

0 comments on commit af445b3

Please sign in to comment.