Skip to content

fix workflow

fix workflow #2

# .github/workflows/main.yml
name: Build and Deploy
on:
push:
tags: ["*"]
branches: ["master"]
permissions:
contents: write
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
docker-build:

Check failure on line 16 in .github/workflows/deploy-website.yaml

View workflow run for this annotation

GitHub Actions / Build and Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-website.yaml (Line: 16, Col: 3): Error calling workflow 'ethdevops/workflows/.github/workflows/basic-docker-build.yaml@main'. The nested job 'build-docker-image' is requesting 'packages: write, id-token: write', but is only allowed 'packages: none, id-token: none'.
uses: ethdevops/workflows/.github/workflows/basic-docker-build.yaml@main
secrets:
docker_registry_user: ${{ secrets.DOCKER_REGISTRY_USER }}
docker_registry_password: ${{ secrets.DOCKER_REGISTRY_SECRET }}
deploy-to-k8s:
if: startsWith(github.ref, 'refs/tags/')
needs:
- docker-build
uses: ethdevops/workflows/.github/workflows/deploy-via-argocd.yaml@main
with:
team: security
project: website
secrets:
cypher_client_id: ${{ secrets.CYPHER_CLIENT_ID }}
cypher_client_secret: ${{ secrets.CYPHER_CLIENT_SECRET }}