-
Notifications
You must be signed in to change notification settings - Fork 375
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
11 changed files
with
617 additions
and
147 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
name: Trigger nightly build | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 2-6' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger-nightly: | ||
name: Push tag for nightly build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: 'Push new tag' | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
# A previous release was created using a lightweight tag | ||
# git describe by default includes only annotated tags | ||
# git describe --tags includes lightweight tags as well | ||
DESCRIBE=`git tag -l --sort=-v:refname | grep -v nightly | head -n 1` | ||
MAJOR_VERSION=`echo $DESCRIBE | awk '{split($0,a,"."); print a[1]}'` | ||
MINOR_VERSION=`echo $DESCRIBE | awk '{split($0,a,"."); print a[2]}'` | ||
MINOR_VERSION="$((${MINOR_VERSION} + 1))" | ||
TAG="${MAJOR_VERSION}.${MINOR_VERSION}.0-nightly.$(date +'%Y%m%d')" | ||
git tag -a $TAG -m "$TAG: nightly build" | ||
git push origin $TAG | ||
- name: 'Clean up nightly releases' | ||
uses: dev-drprasad/delete-older-releases@v0.3.3 | ||
with: | ||
keep_latest: 5 | ||
delete_tags: true | ||
delete_tag_pattern: nightly | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 'Delete nightly containers older than a week' | ||
uses: snok/container-retention-policy@v2.1.2 | ||
with: | ||
image-names: gnolang/gno* | ||
cut-off: 1 week ago UTC | ||
account-type: org | ||
org-name: gnolang | ||
keep-at-least: 5 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
filter-tags: '*-nightly*' |
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,45 @@ | ||
name: Go Releaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
permissions: | ||
contents: write # needed to write releases | ||
id-token: write # needed for keyless signing | ||
packages: write # needed for ghcr access | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.x" | ||
cache: true | ||
|
||
- uses: sigstore/cosign-installer@v3.5.0 | ||
- uses: anchore/sbom-action/download-syft@v0.15.10 | ||
|
||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: release --clean --config ./.github/goreleaser.yaml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_TOKEN }} |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ genesis.json | |
|
||
# Build leftovers | ||
build | ||
dist | ||
|
||
# Legacy .gitignore | ||
data/* | ||
|
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
FROM busybox | ||
|
||
COPY ./gno /gno | ||
COPY ./examples /gnoroot/examples/ | ||
COPY ./gnovm/stdlibs /gnoroot/gnovm/stdlibs/ | ||
COPY ./gnovm/tests/stdlibs /gnoroot/gnovm/tests/stdlibs/ | ||
|
||
ENV GNOROOT="/gnoroot/" | ||
|
||
ENTRYPOINT [ "/gno" ] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM busybox | ||
|
||
COPY . / | ||
|
||
ENTRYPOINT [ "/gnokey" ] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM busybox | ||
|
||
COPY ./gnoland /gnoland | ||
COPY ./examples /gnoroot/examples/ | ||
COPY ./gnovm/stdlibs /gnoroot/gnovm/stdlibs/ | ||
COPY ./gno.land/genesis/genesis_balances.txt /gnoroot/gno.land/genesis/genesis_balances.txt | ||
COPY ./gno.land/genesis/genesis_txs.jsonl /gnoroot/gno.land/genesis/genesis_txs.jsonl | ||
|
||
ENV GNOROOT="/gnoroot/" | ||
|
||
EXPOSE 26657 36657 | ||
ENTRYPOINT [ "/gnoland" ] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM busybox | ||
|
||
COPY . / | ||
|
||
EXPOSE 8888 | ||
ENTRYPOINT [ "/gnoweb" ] | ||
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