From e3f584c365acf9c90afb7e828695130cfd217383 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 1 Apr 2025 08:54:16 -0400 Subject: [PATCH] ci: removes docker workflow to reduce noise and prepare for ADO pipeline updates in v1 --- .github/workflows/docker.yml | 42 ------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 7e81a456d..000000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Publish Docker image -on: - workflow_dispatch: - push: - branches: [main, dev, support/v1] - paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**'] -env: - REGISTRY: msgraphprod.azurecr.io - IMAGE_NAME: public/openapi/hidi -jobs: - push_to_registry: - environment: - name: acr - name: Push Docker image - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - name: Login to registry - uses: docker/login-action@v3.3.0 - with: - username: ${{ secrets.ACR_USERNAME }} - password: ${{ secrets.ACR_PASSWORD }} - registry: ${{ env.REGISTRY }} - - run: | - $content = [XML](Get-Content ./src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj) - $version = $content.Project.PropertyGroup.Version - echo "::set-output name=version::${version}" - shell: pwsh - id: getversion - - name: Push to registry - Nightly - if: ${{ github.ref == 'refs/heads/dev' }} - uses: docker/build-push-action@v6.10.0 - with: - push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly - - name: Push to registry - Release - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/support/v1' }} - uses: docker/build-push-action@v6.10.0 - with: - push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }}