Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 12d3be4

Browse files
committed
feat: add workflow
1 parent 376211f commit 12d3be4

File tree

2 files changed

+43
-10
lines changed

2 files changed

+43
-10
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
# run only against tags
6+
tags:
7+
- '*'
8+
9+
permissions:
10+
contents: write
11+
# packages: write
12+
# issues: write
13+
14+
jobs:
15+
goreleaser:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
- run: git fetch --force --tags
22+
- uses: actions/setup-go@v4
23+
with:
24+
go-version: stable
25+
# More assembly might be required: Docker logins, GPG, etc. It all depends
26+
# on your needs.
27+
- uses: goreleaser/goreleaser-action@v4
28+
with:
29+
# either 'goreleaser' (default) or 'goreleaser-pro':
30+
distribution: goreleaser
31+
version: latest
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
36+
# distribution:
37+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Reverse registry
22

3-
This is Chainguard reverse registry that redirect to Chainguard's `cgr.dev/chainguard/*` public registry. The public, free tier of Chainguard Images only serves `latest` tag. This could be of inconvenience so we wrote this reverse registry to continously watching Chainguard registry for digest changes and extract the package version via SBOM. We then tag the image according with the packaged software version and serve via this reverse registry.
3+
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)
4+
5+
This is a Chainguard reverse registry that redirect to Chainguard's `cgr.dev/chainguard/*` public registry. The public, free tier of Chainguard Images only serves `latest` tag. This could be of inconvenience so we wrote this reverse registry to continously watching Chainguard registry for digest changes and extract the package version via SBOM. We then tag the image according with the packaged software version and serve via this reverse registry.
46

57
By default, in-mem sqlite is used but MySQL is recommended for production setup.
68
## Usage
79

8-
To be update
9-
10-
How to run this locally/production.
10+
```bash
11+
go run main.go server --config=config.yaml
12+
```
1113
## How it works
1214

13-
Just an example. Need to update this accordingly.
14-
1515
```mermaid
1616
sequenceDiagram
1717
autonumber
@@ -33,7 +33,3 @@ end
3333
RR->>CG: Proxied every other APIs
3434
3535
```
36-
37-
## Deploy with Cloud Run
38-
39-
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)

0 commit comments

Comments
 (0)