Skip to content

Commit 5d4237f

Browse files
fmorencyCopilot
andauthored
chore: update docs and release docker ci (#68)
--------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 81a8e39 commit 5d4237f

File tree

2 files changed

+68
-2
lines changed

2 files changed

+68
-2
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Push Docker Images
2+
3+
on:
4+
release:
5+
types: [published, created]
6+
push:
7+
tags:
8+
- '**'
9+
10+
env:
11+
REGISTRY: ghcr.io
12+
IMAGE_NAME: ${{ github.repository }}
13+
14+
jobs:
15+
chain-images:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
packages: write
19+
contents: read
20+
attestations: write
21+
id-token: write
22+
steps:
23+
- name: Check out the repo
24+
uses: actions/checkout@v4
25+
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Login to GitHub Container Registry
33+
uses: docker/login-action@v3
34+
with:
35+
registry: ${{ env.REGISTRY }}
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Extract metadata (tags, labels) for Docker
40+
id: meta
41+
uses: docker/metadata-action@v4
42+
with:
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44+
tags: |
45+
type=ref,event=branch
46+
type=ref,event=pr
47+
type=semver,pattern={{version}}
48+
type=semver,pattern={{major}}.{{minor}}
49+
50+
- name: Build and push
51+
id: build
52+
uses: docker/build-push-action@v6
53+
with:
54+
file: Dockerfile
55+
context: .
56+
push: ${{ github.event_name != 'pull_request' }}
57+
tags: ${{ steps.meta.outputs.tags }}
58+
labels: ${{ steps.meta.outputs.labels }}
59+
platforms: linux/amd64,linux/arm64
60+
61+
- name: Generate artifact attestation
62+
uses: actions/attest-build-provenance@v2
63+
with:
64+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
65+
subject-digest: ${{ steps.build.outputs.digest }}
66+
push-to-registry: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaci
22

3-
[![build](https://img.shields.io/circleci/build/github/manifest-network/yaci/main)](https://app.circleci.com/pipelines/github/manifest-network/yaci)
4-
[![coverage](https://img.shields.io/codecov/c/github/manifest-network/yaci)](https://app.codecov.io/gh/manifest-network/yaci)
3+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/manifest-network/yaci/ci.yml)
4+
[![codecov](https://codecov.io/github/manifest-network/yaci/graph/badge.svg?token=E0fP14l7Ct)](https://codecov.io/github/manifest-network/yaci)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/manifest-network/yaci)](https://goreportcard.com/report/github.com/manifest-network/yaci)
66

77
`yaci` is a command-line tool that connects to a gRPC server and extracts blockchain data.

0 commit comments

Comments
 (0)