Skip to content

Commit

Permalink
Merge pull request #8 from lexara-prime-ai/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
lexara-prime-ai authored May 21, 2024
2 parents eb3e9a9 + 57aa2a0 commit 8e708e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to Docker Hub
name: Publish image to Docker Hub

on:
push:
Expand Down Expand Up @@ -30,14 +30,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@v3.1.1
# with:
# cosign-release: 'v2.2.0'

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
Expand Down Expand Up @@ -75,17 +67,5 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
# - name: Sign the published Docker image
# if: ${{ github.event_name != 'pull_request' }}
# env:
# # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
# TAGS: ${{ steps.meta.outputs.tags }}
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
# # This step uses the identity token to provision an ephemeral certificate
# # against the sigstore community Fulcio instance.
# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
# TODO -> Sign the resulting Docker image digest except on PRs.

6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ mod utils;

#[main]
async fn main() {
println!(r#"
[MPESA SDK version 0.1.1]
"#);

//////////////// Examples //////////////////

////////////////////////////////////////////
Expand All @@ -38,6 +42,4 @@ async fn main() {
// "The payment has been processed successfully".to_string(),
// );
// println!("{:?}", lipa_na_mpesa_result.await);

println!("It works!");
}

0 comments on commit 8e708e4

Please sign in to comment.