diff --git a/.github/workflows/publish-icr.yaml b/.github/workflows/publish-icr.yaml deleted file mode 100644 index c7b8480..0000000 --- a/.github/workflows/publish-icr.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Publish container image - -on: - release: - types: [published] - -jobs: - publish_to_registry: - name: Build and push image to registry - runs-on: ubuntu-latest - env: - ICR_NAMESPACE: solution-tutorial - ICR_REPOSITORY: tutorial-serverless-api-webapp - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - - name: Log in to Container Registry - uses: docker/login-action@v1.10.0 - with: - registry: icr.io - username: ${{ secrets.ICR_USER }} - password: ${{ secrets.ICR_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v3 - with: - images: icr.io/${{ env.ICR_NAMESPACE }}/${{ env.ICR_REPOSITORY }} - - - name: Build and push image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }}