Skip to content

fix workflow

fix workflow #2

Workflow file for this run

name: Build and Distributed D_D Cloud CLI

Check failure on line 1 in .github/workflows/cd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yaml

Invalid workflow file

(Line: 4, Col: 3): Unexpected value 'branches', (Line: 4, Col: 13): A sequence was not expected
on:
branches: [main]
jobs:
docker-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push dd-rpc image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/developer-dao/rpc:${{ github.sha }}