-
Notifications
You must be signed in to change notification settings - Fork 6
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
40 changed files
with
282 additions
and
410 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,60 @@ | ||
name: Publish Docker image for chain-prometheus-exporter to DockerHub | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'chain-prometheus-exporter/*.*.*' | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: docker.io | ||
SERVICE_NAME: chain-prometheus-exporter | ||
RUST_VERSION: rust:1.76-buster | ||
|
||
jobs: | ||
publish-docker-image: | ||
runs-on: ubuntu-latest | ||
environment: release-unprivileged | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Extract version tag from Cargo.toml manifest | ||
id: meta | ||
run: | | ||
VERSION=$(yq .package.version ${{ env.SERVICE_NAME }}/Cargo.toml) | ||
FULL_IMAGE_TAG="${{ env.REGISTRY }}/concordium/${{ env.SERVICE_NAME }}:$VERSION" | ||
echo "::notice FULL_IMAGE_TAG=${FULL_IMAGE_TAG}" | ||
# Make sure the image does not exist. Abort if we can retrieve any metadata. | ||
if docker manifest inspect $FULL_IMAGE_TAG > /dev/null; then | ||
echo "::error $FULL_IMAGE_TAG already exists" | ||
exit 1 | ||
elif [ ! "${{ github.ref_name }}" = "${{ env.SERVICE_NAME }}/$VERSION" ]; then | ||
echo "::error ${{ github.ref_name }} does not match ${{ env.SERVICE_NAME }}/${VERSION}." | ||
exit 1 | ||
else | ||
# Store the full image tag into a tag variable for the following step. | ||
echo "tag=${FULL_IMAGE_TAG}" > "$GITHUB_OUTPUT" | ||
fi | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ${{ env.SERVICE_NAME }}/scripts/build.Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tag }} | ||
build-args: | | ||
build_image=${{ env.RUST_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
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
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 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
Submodule concordium-rust-sdk
updated
16 files
+2 −2 | .github/workflows/build-and-test.yaml | |
+13 −1 | CHANGELOG.md | |
+3 −13 | Cargo.toml | |
+2 −9 | README.md | |
+1 −1 | concordium-base | |
+0 −102 | examples/monitor-postgres.rs | |
+0 −81 | examples/postgres.rs | |
+632 −16 | src/contract_client.rs | |
+0 −4 | src/lib.rs | |
+0 −368 | src/postgres.rs | |
+15 −0 | src/types/mod.rs | |
+20 −0 | src/types/summary_helper.rs | |
+6 −0 | src/v2/conversions.rs | |
+23 −2 | src/v2/generated/concordium.v2.rs | |
+6 −5 | src/v2/mod.rs | |
+1 −1 | src/v2/proto_schema_version.rs |
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
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 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,5 @@ | ||
## 0.4.0 | ||
- Updated the Concordium Rust SDK to support the changes introduced in protocol 7. | ||
|
||
## 0.3.0 | ||
*Prior versions not kept in changelog.* |
Oops, something went wrong.