diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml new file mode 100644 index 00000000..4c8b6403 --- /dev/null +++ b/.github/workflows/push-image.yml @@ -0,0 +1,17 @@ +name: Push Image + +on: + release: + types: [published] # Trigger on published release + +jobs: + push: + runs-on: ubuntu-latest + needs: build + steps: + - name: 📦 Push to ECR + uses: aws-actions/amazon-ecr-login@v1 + - run: | + docker load --input ${APPLICATION}_latest.tar.gz + docker tag ${APPLICATION}:latest ${IMAGE_NAME}:latest + docker push ${IMAGE_NAME}:latest