diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 64c5878a7..fe1547bcf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -200,84 +200,10 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required if: always() - publish-ai: - name: Build and push Plural ai container - runs-on: ubuntu-20.04 - needs: test - permissions: - contents: 'read' - id-token: 'write' - packages: 'write' - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - # list of Docker images to use as base name for tags - images: | - dkr.plural.sh/plural/plural-ai - gcr.io/pluralsh/plural-ai - ghcr.io/pluralsh/plural-ai - # generate Docker tags based on the following events/attributes - tags: | - type=semver,pattern={{version}} - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - uses: google-github-actions/auth@v1 - with: - workload_identity_provider: 'projects/${{ secrets.GOOGLE_PROJECT_ID }}/locations/global/workloadIdentityPools/github/providers/github' - service_account: 'terraform@pluralsh.iam.gserviceaccount.com' - token_format: 'access_token' - create_credentials_file: true - - uses: google-github-actions/setup-gcloud@v1.0.1 - - name: Login to gcr - run: gcloud auth configure-docker -q - - name: installing plural - id: plrl - uses: pluralsh/setup-plural@v0.1.8 - with: - email: gh-actions@plural.sh - - name: Login to plural registry - uses: docker/login-action@v2 - with: - registry: dkr.plural.sh - username: gh-actions@plural.sh - password: ${{ secrets.PLURAL_ACCESS_TOKEN }} - - name: Login to GHCR - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push ${{ matrix.app }} - uses: docker/build-push-action@v3 - with: - context: "./ai" - file: "./ai/Dockerfile" - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - - name: slack webhook - uses: 8398a7/action-slack@v3 - with: - status: ${{ job.status }} - fields: workflow,job,repo,message,commit,author - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required - if: always() release: name: Create GitHub release runs-on: ubuntu-20.04 - needs: [publish, publish-frontend, publish-ai] + needs: [publish, publish-frontend] permissions: contents: write discussions: write