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 4a5223d commit cb2264f
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
scrolltech/rollup-explorer-backend
tags: |
type=semver,pattern={{version}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -39,13 +30,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Github
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.PAT_OWNER }}
password: ${{ secrets.PAT_TOKEN }}

# build and push to aws ecr
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -68,5 +52,7 @@ jobs:
with:
push: true
tags: |
${{ steps.meta.outputs.tags }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.ECR_REPOSITORY }}:latest
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest

0 comments on commit cb2264f

Please sign in to comment.