-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ai publish from gh action (#1401)
- Loading branch information
1 parent
95d8dff
commit 33a4a62
Showing
1 changed file
with
1 addition
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: '[email protected]' | ||
token_format: 'access_token' | ||
create_credentials_file: true | ||
- uses: google-github-actions/[email protected] | ||
- name: Login to gcr | ||
run: gcloud auth configure-docker -q | ||
- name: installing plural | ||
id: plrl | ||
uses: pluralsh/[email protected] | ||
with: | ||
email: [email protected] | ||
- name: Login to plural registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: dkr.plural.sh | ||
username: [email protected] | ||
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 | ||
|