diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d0846937..33f61242 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -69,6 +69,6 @@ jobs: application: ['bigcommerce-mesh', 'orocommerce-mesh'] runs-on: ubuntu-latest steps: - - uses: ./.github/workflows/build.yml + - uses: ${{ GITHUB_ACTION_REPOSITORY }}/.github/workflows/build.yml with: application: ${{ matrix.application }} 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