Skip to content

removed depot project id #20

removed depot project id

removed depot project id #20

name: Push image to JFROG Public
on:
push:
branches:
- 'main'
- 'update_sha_on_release'
permissions:
id-token: write
contents: read
jobs:
build-operator:
name: Build and Push Operator Docker Images
uses: truefoundry/github-workflows-public/.github/workflows/[email protected]
with:
image_tag: ${{ github.sha }}
image_artifact_name: 'elasti-operator'
dockerfile_path: 'operator/Dockerfile'
# depot_project_id: ${{ vars.DEPOT_PROJECT_ID }}
artifactory_registry_url: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }}
artifactory_repository_url: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_REPOSITORY }}
secrets:
depot_token: ${{ secrets.DEPOT_API_KEY }}

Check failure on line 25 in .github/workflows/build-n-publish.yml

View workflow run for this annotation

GitHub Actions / Push image to JFROG Public

Invalid workflow file

The workflow is not valid. .github/workflows/build-n-publish.yml (Line: 25, Col: 20): Invalid secret, depot_token is not defined in the referenced workflow.
artifactory_username: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }}
artifactory_password: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }}
build-resolver:
name: Build and Push Resolver Docker Images
uses: truefoundry/github-workflows-public/.github/workflows/[email protected]
with:
image_tag: ${{ github.sha }}
image_artifact_name: 'elasti-resolver'
dockerfile_path: 'resolver/Dockerfile'
# depot_project_id: ${{ vars.DEPOT_PROJECT_ID }}
artifactory_registry_url: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }}
artifactory_repository_url: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_REPOSITORY }}
secrets:
depot_token: ${{ secrets.DEPOT_API_KEY }}
artifactory_username: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }}
artifactory_password: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }}
update-helm-chart:
name: Update Helm values.yaml
runs-on: ubuntu-latest
needs: [build-operator, build-resolver]
steps:
- name: Checkout current branch
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Update Helm values.yaml
run: |
cd charts/elasti
yq -i '.elastiController.manager.image.tag = "${{ github.sha }}' values.yaml
yq -i '.elastiResolver.proxy.image.tag = "${{ github.sha }}' values.yaml
git add values.yaml
git commit -m "Update Helm values.yaml"
git push