diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a0dbd5..fb8d5db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,11 +32,13 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - id: login-ecr + - id: login-ecr-public uses: aws-actions/amazon-ecr-login@v2 + with: + registry-type: public - env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} + REGISTRY: ${{ steps.login-ecr-public.outputs.registry }} REGISTRY_ALIAS: i9v2y6d7 REPOSITORY: magnito IMAGE_TAG: ${{ env.VERSION }} - run: docker buildx build --platform linux/amd64,linux/arm64 -t $ECR_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:latest --push . + run: docker buildx build --platform linux/amd64,linux/arm64 --build-arg VERSION=$IMAGE_TAG -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:latest --push .