-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* local-ic cleanup * add POA test * cleanup misc go and proto * cleanup * undo accidental params change (!=0) * remove handled todos * lint * proto-gen latest * release docker image on tag
- Loading branch information
1 parent
0ebdae9
commit b782409
Showing
42 changed files
with
219 additions
and
361 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build appd | ||
name: Build Manifest | ||
|
||
on: | ||
pull_request: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# This workflow pushes new docker images on every new tag. | ||
# | ||
# On every new `vX.Y.Z` tag the following images are pushed: | ||
# | ||
# liftedinit/manifest-ledger:vX.Y.Z # is pushed | ||
# liftedinit/manifest-ledger:X.Y.Z # is pushed | ||
# liftedinit/manifest-ledger:X.Y # is updated to X.Y.Z | ||
# liftedinit/manifest-ledger:X # is updated to X.Y.Z | ||
# liftedinit/manifest-ledger:latest # is updated to X.Y.Z | ||
# | ||
# All the images above have support for linux/amd64 and linux/arm64. | ||
# | ||
# Due to QEMU virtualization used to build multi-platform docker images | ||
# this workflow might take a while to complete. | ||
|
||
name: Push Docker Images | ||
|
||
on: | ||
release: | ||
types: [published, created, edited] | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc | ||
|
||
jobs: | ||
chain-images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Parse tag | ||
id: tag | ||
run: | | ||
VERSION=$(echo ${{ github.ref_name }} | sed "s/v//") | ||
MAJOR_VERSION=$(echo $VERSION | cut -d '.' -f 1) | ||
MINOR_VERSION=$(echo $VERSION | cut -d '.' -f 2) | ||
PATCH_VERSION=$(echo $VERSION | cut -d '.' -f 3) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV | ||
echo "MINOR_VERSION=$MINOR_VERSION" >> $GITHUB_ENV | ||
echo "PATCH_VERSION=$PATCH_VERSION" >> $GITHUB_ENV | ||
- name: Build and push | ||
id: build_push_image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: Dockerfile | ||
context: . | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
ghcr.io/liftedinit/manifest-ledger:${{ env.MAJOR_VERSION }} | ||
ghcr.io/liftedinit/manifest-ledger:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }} | ||
ghcr.io/liftedinit/manifest-ledger:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }} | ||
ghcr.io/liftedinit/manifest-ledger:v${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }} |
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 |
---|---|---|
|
@@ -23,5 +23,4 @@ jobs: | |
check-latest: true | ||
|
||
- name: unit tests | ||
run: | | ||
make test | ||
run: make test |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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
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.