Skip to content

Commit

Permalink
Merge pull request #8 from adorsys/cd
Browse files Browse the repository at this point in the history
fix(ci): update build step in delivery workflow
  • Loading branch information
bengo237 authored Feb 28, 2024
2 parents 9640fd6 + 32ffd36 commit b7cb0dd
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,31 @@ 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@v5
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

#- name: Build container
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# build-args: |
# USERNAME=${{ github.actor }}
# PAT=${{ secrets.PAT }}

- name: Build container
uses: docker/build-push-action@v5
- 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 }}
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
USERNAME=${{ github.actor }}
PAT=${{ secrets.PAT }}

0 comments on commit b7cb0dd

Please sign in to comment.