Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonjie authored Jan 24, 2024
1 parent 09d6208 commit d5b65a3
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ jobs:
username: ${{ secrets.PAT_OWNER }}
password: ${{ secrets.PAT_TOKEN }}

- name: Build image
id: build
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ steps.meta.outputs.tags }}

# build and push to aws ecr
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -63,14 +56,15 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
id: build-image
- name: Build image
id: build
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: rollup-explorer-backend
IMAGE_TAG: ${{github.ref_name}}
run: |
# Build a docker container and push it to ECR
# docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker tag scrolltech/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
IMAGE_TAG: ${{ steps.meta.outputs.version }}
uses: docker/build-push-action@v3
with:
push: true
tags: |
${{ steps.meta.outputs.tags }}
$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit d5b65a3

Please sign in to comment.