diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6f3cdd7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + checks: write + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.23' + cache: true + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.61 + + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.23' + cache: true + - name: Install dependencies + run: go mod download + - name: Build application + run: go build -v . + - name: Run tests + run: go test -v ./... diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fdcccfb..cb64865 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -62,7 +62,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/.gitignore b/.gitignore index 0584dfe..9985c4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ config/local.yaml config/docker-compose.yaml +docker-compose.yaml .DS_Store \ No newline at end of file diff --git a/README.md b/README.md index 032b885..7051964 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ The service can be deployed using Docker Compose. Below is an example configurat ```yaml services: - blockscout-vc-sidecar: + sidecar: image: ghcr.io/aurora-is-near/blockscout-vc:latest - container_name: blockscout-vc + container_name: sidecar pull_policy: always - command: ["--config", "/app/config/local.yaml"] + command: ["sh", "-c", "/app/app --config /app/config/local.yaml"] volumes: - ./config:/app/config - /var/run/docker.sock:/var/run/docker.sock