forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
1,205 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
project_name: bdjuno | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- id: "bdjuno" | ||
main: ./cmd/bdjuno/main.go | ||
binary: bdjuno | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
changelog: | ||
skip: false | ||
use: git | ||
groups: | ||
- title: Features | ||
regexp: "^.*feat[(\\w)]*:+.*$" | ||
order: 0 | ||
- title: 'Bug fixes' | ||
regexp: "^.*fix[(\\w)]*:+.*$" | ||
order: 1 | ||
- title: Others | ||
order: 999 | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^chore:' | ||
dockers: | ||
- use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "ghcr.io/elesto-dao/{{ .ProjectName }}:{{ .Version }}-amd64" | ||
build_flag_templates: | ||
- "--pull" | ||
- "--platform=linux/amd64" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- use: buildx | ||
goos: linux | ||
goarch: arm64 | ||
image_templates: | ||
- "ghcr.io/elesto-dao/{{ .ProjectName }}:{{ .Version }}-arm64v8" | ||
build_flag_templates: | ||
- "--pull" | ||
- "--platform=linux/arm64" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
docker_manifests: | ||
- name_template: ghcr.io/elesto-dao/{{ .ProjectName }}:{{ .Version }} | ||
image_templates: | ||
- ghcr.io/elesto-dao/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- ghcr.io/elesto-dao/{{ .ProjectName }}:{{ .Version }}-arm64v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- chains/elesto/* | ||
|
||
jobs: | ||
Build-and-Publish: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: release-please | ||
name: Release Please | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: node | ||
package-name: elesto-issuer-dashboard | ||
release-type: go | ||
package-name: bdjuno | ||
changelog-types: >- | ||
[ | ||
{"type":"feat","section":"Features","hidden":false}, | ||
{"type":"fix","section":"Bug Fixes","hidden":false}, | ||
{"type":"chore","section":"Miscellaneous","hidden":true} | ||
] | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
if: steps.release-please.outputs.release_created | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup ssh-agent | ||
uses: webfactory/[email protected] | ||
if: steps.release-please.outputs.release_created | ||
with: | ||
ssh-private-key: ${{ secrets.ELESTO_DEPLOY_KEY }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
if: steps.release-please.outputs.release_created | ||
with: | ||
fetch-depth: 0 | ||
go-version-file: go.mod | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
if: steps.release-please.outputs.release_created | ||
|
@@ -45,17 +51,11 @@ jobs: | |
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Image metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
if: steps.release-please.outputs.release_created | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: type=raw,value=${{ steps.release-please.outputs.tag_name }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
if: steps.release-please.outputs.release_created | ||
with: | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
args: release --rm-dist --config .github/.goreleaser.yaml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOPRIVATE: github.com/${{ env.GITHUB_REPOSITORY_OWNER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- test | ||
|
||
jobs: | ||
Build-and-Publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup ssh-agent | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELESTO_DEPLOY_KEY }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Image metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: type=raw,value=1.0.0 | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
ssh: | | ||
default=${{ env.SSH_AUTH_SOCK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea/ | ||
build/ | ||
dist/ | ||
|
||
# Configuration | ||
*.toml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
FROM golang:1.18-alpine AS builder | ||
RUN apk update && apk add --no-cache make git | ||
WORKDIR /go/src/github.com/forbole/bdjuno | ||
COPY . ./ | ||
RUN go mod download | ||
RUN make build | ||
FROM scratch | ||
|
||
FROM alpine:latest | ||
WORKDIR /bdjuno | ||
COPY --from=builder /go/src/github.com/forbole/bdjuno/build/bdjuno /usr/bin/bdjuno | ||
CMD [ "bdjuno" ] | ||
COPY /bdjuno /bdjuno | ||
|
||
ENTRYPOINT [ "/bdjuno" ] | ||
CMD [ "" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.