Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
41737b9
Merge pull request #3 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
eb11f39
use PAT for PRs
ngundotra Oct 21, 2024
199bc9d
Merge pull request #4 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
8f482ec
use github ci bot to commit gen'd PR
ngundotra Oct 21, 2024
69f74d6
Merge pull request #6 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
73ce843
author by bot
ngundotra Oct 21, 2024
4529301
Merge pull request #7 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
ed18725
remove unused bot committer info
ngundotra Oct 21, 2024
02e51e6
Merge pull request #9 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
329db6f
author as github bot
ngundotra Oct 21, 2024
5245198
Merge pull request #11 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
39af219
use app token
ngundotra Oct 21, 2024
f6ebc8e
Merge pull request #13 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 21, 2024
7ef74ef
add v1.18.16
ngundotra Oct 21, 2024
6cc033c
Merge pull request #72 from ngundotra/v1.18.16
jarry-xiao Oct 21, 2024
12ea2d0
add build+publish dockerfile
ngundotra Oct 22, 2024
402c207
Merge pull request #15 from ngundotra/ghcr-publish
ngundotra Oct 22, 2024
a8c5ee1
fix namespace
ngundotra Oct 22, 2024
a5cca36
Merge pull request #16 from ngundotra/ghcr-publish
ngundotra Oct 22, 2024
26c2f97
fix namespace variable
ngundotra Oct 22, 2024
25f95c2
Merge pull request #17 from ngundotra/ghcr-publish
ngundotra Oct 22, 2024
796020a
fix attestation
ngundotra Oct 22, 2024
8b5afae
Merge pull request #18 from ngundotra/ghcr-publish
ngundotra Oct 22, 2024
9324518
Merge pull request #71 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 22, 2024
38d4de3
Update generate_dockerfiles.yml
ngundotra Oct 22, 2024
5e29257
update whitelist ci job
ngundotra Oct 22, 2024
c3ec591
fix token
ngundotra Oct 22, 2024
7d0bc31
Merge pull request #19 from ngundotra/update-whitelist
ngundotra Oct 22, 2024
5a88012
update_whitelist
ngundotra Oct 22, 2024
657269e
update whitelist desc
ngundotra Oct 22, 2024
e0af05a
Merge pull request #20 from ngundotra/update-whitelist
ngundotra Oct 22, 2024
03cfd30
fix dockerfile
ngundotra Oct 22, 2024
d760f51
Merge pull request #22 from ngundotra/fix
ngundotra Oct 22, 2024
f247084
update image whitelist to kick off on push to master
ngundotra Oct 22, 2024
22ef44a
prefix branch w autopr
ngundotra Oct 22, 2024
86c4b22
Merge pull request #24 from ngundotra/update-whitelist
ngundotra Oct 22, 2024
9411542
prefix with autopr
ngundotra Oct 22, 2024
98b3b10
Merge pull request #26 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 22, 2024
6103161
straighten out workflows
ngundotra Oct 22, 2024
de3e1d1
report matrix version
ngundotra Oct 22, 2024
ef53972
Merge pull request #27 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
48be5a9
Update Dockerfiles
ngundotra Oct 22, 2024
88f051a
Merge pull request #28 from ngundotra/autopr-update-dockerfiles
ngundotra Oct 22, 2024
ded29ce
Revert "Update Dockerfiles"
ngundotra Oct 22, 2024
58a8802
Merge pull request #29 from ngundotra/revert-28-autopr-update-dockerf…
ngundotra Oct 22, 2024
df59e72
fix parsing, ignore deleted files
ngundotra Oct 22, 2024
f2a07d2
Merge pull request #30 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
58fc8a2
Update Dockerfiles
ngundotra Oct 22, 2024
ce1e338
Merge pull request #31 from ngundotra/autopr-update-dockerfiles
ngundotra Oct 22, 2024
a413fcf
Revert "Update Dockerfiles"
ngundotra Oct 22, 2024
9c087d7
Merge pull request #32 from ngundotra/revert-31-autopr-update-dockerf…
ngundotra Oct 22, 2024
fc72fc5
show matrix outputs
ngundotra Oct 22, 2024
21bffe8
Merge pull request #33 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
60d9b01
Update Dockerfiles
ngundotra Oct 22, 2024
a3a2df5
Merge pull request #34 from ngundotra/autopr-update-dockerfiles
ngundotra Oct 22, 2024
7995875
choose base version to compare to
ngundotra Oct 22, 2024
8318e3a
Merge pull request #35 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
84d3b86
add fetch depth
ngundotra Oct 22, 2024
0b4927e
Merge pull request #36 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
5eb05df
fix matrix parsing
ngundotra Oct 22, 2024
ddb6187
Merge pull request #37 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
365b16c
fix parsing
ngundotra Oct 22, 2024
a6077aa
Merge pull request #38 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
5fc13be
remove mapping w key
ngundotra Oct 22, 2024
6430aaa
Merge pull request #39 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 22, 2024
0f86234
Merge pull request #2 from ASCorreia/feat-onchain-program
chen-robert Oct 22, 2024
91e5c03
Fixed close subcommand to call program_close
swaroop-osec Oct 23, 2024
7170ce9
Merge branch 'Ellipsis-Labs:master' into feat-onchain-program
swaroop-osec Oct 23, 2024
c54194f
Fix send_job_to_remote fn
swaroop-osec Oct 23, 2024
4bd73aa
suppress clippy warning in main.rs
swaroop-osec Oct 23, 2024
9b28909
feat: apply cargo fmt and cargo sort
swaroop-osec Oct 23, 2024
4a16037
enhance the help and about messages for the 'close' subcommand
swaroop-osec Oct 23, 2024
8cb0a3d
Bump version
swaroop-osec Oct 23, 2024
cb255e2
update app metadata (name, author, version, about) in CLI tool
swaroop-osec Oct 23, 2024
cce02e6
revamp
ngundotra Oct 23, 2024
a12e95c
Merge pull request #40 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
d5ac5df
matrix -> versions name
ngundotra Oct 23, 2024
c9abdcf
Merge pull request #41 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
0af870a
truncate whitespace
ngundotra Oct 23, 2024
d0188f8
Merge pull request #42 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
2d11901
truncate
ngundotra Oct 23, 2024
a12f9c1
Merge pull request #43 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
9b33c37
debug
ngundotra Oct 23, 2024
e41d6ad
Merge pull request #44 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
9a83dc8
fix version matrix strat
ngundotra Oct 23, 2024
00e1053
Merge pull request #45 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 23, 2024
e2bea70
fix ghcr parsing
ngundotra Oct 24, 2024
00fa0df
Merge pull request #46 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
f4d0103
fix issue where tags don't get parsed correctly
ngundotra Oct 24, 2024
09b29fc
Merge pull request #48 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
27dad90
Regenerate image_config.rs file
swaroop-osec Oct 24, 2024
522b8cd
Merge pull request #74 from otter-sec/feat-onchain-program
ngundotra Oct 24, 2024
56e274e
Merge pull request #76 from ngundotra/dockerfile-script-ci-0
ngundotra Oct 24, 2024
b7fee3e
add build+publish dockerfile
ngundotra Oct 22, 2024
246aba4
fix namespace
ngundotra Oct 22, 2024
c3f7217
fix namespace variable
ngundotra Oct 22, 2024
0c0357b
fix attestation
ngundotra Oct 22, 2024
91c6b14
update name to Publish Single Docker Image
ngundotra Oct 24, 2024
909e3c6
Merge pull request #77 from ngundotra/ghcr-publish
ngundotra Oct 24, 2024
28f06de
add build+publish dockerfile
ngundotra Oct 22, 2024
468d61b
fix namespace
ngundotra Oct 22, 2024
0ef6b0f
fix namespace variable
ngundotra Oct 22, 2024
5f1e39a
fix attestation
ngundotra Oct 22, 2024
676cb33
update whitelist ci job
ngundotra Oct 22, 2024
c0e6aef
fix token
ngundotra Oct 22, 2024
5ffb340
update_whitelist
ngundotra Oct 22, 2024
3f1aa6a
update whitelist desc
ngundotra Oct 22, 2024
4dd7736
fix dockerfile
ngundotra Oct 22, 2024
83d7476
update image whitelist to kick off on push to master
ngundotra Oct 22, 2024
69df120
prefix branch w autopr
ngundotra Oct 22, 2024
a1d89ce
straighten out workflows
ngundotra Oct 22, 2024
852b7b7
report matrix version
ngundotra Oct 22, 2024
ad3188d
fix parsing, ignore deleted files
ngundotra Oct 22, 2024
a7b0ded
show matrix outputs
ngundotra Oct 22, 2024
1484304
choose base version to compare to
ngundotra Oct 22, 2024
90866d3
add fetch depth
ngundotra Oct 22, 2024
0192a31
fix matrix parsing
ngundotra Oct 22, 2024
2f258ab
fix parsing
ngundotra Oct 22, 2024
f6cb326
remove mapping w key
ngundotra Oct 22, 2024
65c3bae
revamp
ngundotra Oct 23, 2024
5f6b4d4
matrix -> versions name
ngundotra Oct 23, 2024
3575cc8
truncate whitespace
ngundotra Oct 23, 2024
d863732
truncate
ngundotra Oct 23, 2024
4422a8d
debug
ngundotra Oct 23, 2024
cab8cce
fix version matrix strat
ngundotra Oct 23, 2024
2a5b974
Merge branch 'master' into ci-publish-dockerfiles
ngundotra Oct 24, 2024
b789faa
Merge pull request #75 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 24, 2024
abf1c92
lowercase repo owner
ngundotra Oct 24, 2024
8e7ee7b
Merge pull request #78 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 24, 2024
c5d04a1
fix repo owner name in Publish All Dockerfiles
ngundotra Oct 24, 2024
2ae3bfa
Merge pull request #79 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 24, 2024
c3b432f
Update Dockerfiles
ngundotra Oct 24, 2024
7eafc43
turn off fail-fast for matrix workflow
ngundotra Oct 24, 2024
edd472f
Merge pull request #81 from ngundotra/ci-publish-dockerfiles
ngundotra Oct 24, 2024
875eda6
Merge pull request #80 from Ellipsis-Labs/autopr-update-dockerfiles
ngundotra Oct 24, 2024
7136b09
fix ghcr parsing
ngundotra Oct 24, 2024
00e813a
fix issue where tags don't get parsed correctly
ngundotra Oct 24, 2024
b272312
change to orgs/
ngundotra Oct 24, 2024
8281715
Merge pull request #84 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
4483283
update
ngundotra Oct 24, 2024
e14fb2c
Merge pull request #85 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
289d01f
use GH token to access pkg registry
ngundotra Oct 24, 2024
4a7665e
Merge pull request #86 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
6bf4fde
fix image update whitelist script to paginate through all images
ngundotra Oct 24, 2024
214ba84
Merge pull request #87 from ngundotra/update-whitelist
ngundotra Oct 24, 2024
81d1685
feat: dockerhub push
jacobcreech Oct 25, 2024
25160c0
fix: attestation
jacobcreech Oct 26, 2024
1f23f47
fix: remove trailing /
jacobcreech Oct 26, 2024
258a02a
feat: update publishing all dockerfiles
jacobcreech Oct 26, 2024
37c6154
fix: add sf dockerhub to whitelist
jacobcreech Oct 26, 2024
f56166f
Merge branch 'master' of https://github.com/Ellipsis-Labs/solana-veri…
jacobcreech Oct 31, 2024
bcb5251
Update publish_all_dockerfiles.yaml
jacobcreech Nov 1, 2024
1a234ae
Update publish_all_dockerfiles.yaml
jacobcreech Nov 1, 2024
9c90b32
Add and use sf images
Woody4618 Nov 2, 2024
89a49df
Add version >1.18.23 and >2.0 from agave
Woody4618 Nov 4, 2024
856ee4b
change PATH back to solana
Woody4618 Nov 4, 2024
bc5072d
Change create docker files to use solanafoundation
Woody4618 Nov 4, 2024
472ab64
Update image_config.rs
Woody4618 Nov 4, 2024
3bc6875
Update v1.16.27.Dockerfile
Woody4618 Nov 4, 2024
1f242ed
Add new sf images
Woody4618 Nov 4, 2024
2bfe1b2
Add pagination to docker request
Woody4618 Nov 4, 2024
a0e3527
Update v1.14.10.Dockerfile
Woody4618 Nov 4, 2024
bb44148
Use 1.18 installer for old 14 version
Woody4618 Nov 5, 2024
54c3d9c
Add 1.14 releases
Woody4618 Nov 5, 2024
9447198
Skip release 1.14.0
Woody4618 Nov 5, 2024
bd46c4b
Add releases 10-13
Woody4618 Nov 5, 2024
2adccf9
Update image_config.rs
Woody4618 Nov 5, 2024
e89a0e4
Merge pull request #2 from jacobcreech/master
ngundotra Nov 8, 2024
1b5337e
Update update_whitelist.yaml
ngundotra Nov 8, 2024
e37701b
Update update_whitelist.yaml
ngundotra Nov 8, 2024
504d22d
Update publish_dockerfile.yaml
ngundotra Nov 9, 2024
602c0cb
Update publish_all_dockerfiles.yaml
ngundotra Nov 9, 2024
779a32b
Update update_whitelist.yaml
ngundotra Nov 10, 2024
ea6ad56
Update image whitelist
ngundotra Nov 10, 2024
89183ae
Merge pull request #3 from solana-developers/autopr-update-image-whit…
ngundotra Nov 11, 2024
7351122
add test to ci
ngundotra Nov 11, 2024
860f918
remove solend
ngundotra Nov 11, 2024
c234251
Merge pull request #5 from solana-developers/tests
ngundotra Nov 11, 2024
161e2cf
Update test.yaml
ngundotra Nov 11, 2024
64a6129
Update test.yaml
ngundotra Nov 11, 2024
b252474
add local build test
ngundotra Nov 11, 2024
28d60bd
add verify_from_image
ngundotra Nov 11, 2024
3a75a2a
separate out tests
ngundotra Nov 11, 2024
0654db3
Merge pull request #6 from solana-developers/local-test
ngundotra Nov 11, 2024
2a7e82f
Update test.yaml
ngundotra Nov 11, 2024
d757efe
Merge branch 'master' into master
ngundotra Nov 11, 2024
363e92f
Add games preset and agave 2.1.0 test
Woody4618 Nov 11, 2024
b055b55
add tests to ci
ngundotra Nov 11, 2024
81e65b3
Merge pull request #7 from solana-developers/add-test-games-preset
ngundotra Nov 11, 2024
b37ba73
Update Cargo.toml
ngundotra Nov 11, 2024
999fd88
Update Dockerfiles
ngundotra Nov 11, 2024
7d177d2
Merge pull request #4 from solana-developers/autopr-update-dockerfiles
ngundotra Nov 11, 2024
7e08626
Update image whitelist
ngundotra Nov 11, 2024
c824705
Merge pull request #8 from solana-developers/autopr-update-image-whit…
ngundotra Nov 11, 2024
620170c
Merge pull request #91 from solana-developers/master
ngundotra Nov 12, 2024
5ec4ba5
update lockfile with v0.3.0
ngundotra Nov 12, 2024
a8ea0ce
Added PDA upload after remote verification
ASCorreia Nov 20, 2024
4f50837
Merge branch 'feat-onchain-program' of https://github.com/ASCorreia/s…
ASCorreia Nov 20, 2024
acbf4d1
displays help if no subcommand is provided
skrrb Nov 20, 2024
122f3ff
Added flag to skip prompt to upload program
ASCorreia Nov 21, 2024
58f679e
minor changes
ASCorreia Nov 21, 2024
d378d33
Merge pull request #3 from ASCorreia/feat-onchain-program
chen-robert Nov 21, 2024
6920733
Merge pull request #96 from otter-sec/master
ngundotra Nov 21, 2024
57de327
add kp
ngundotra Nov 21, 2024
40d36dc
add list pdas, fix skip-prompt
ngundotra Nov 21, 2024
6924d09
improve error message for close
ngundotra Nov 21, 2024
280963c
Merge pull request #95 from skrrb/feature/display-help
ngundotra Nov 21, 2024
8e7eb65
Merge pull request #97 from Ellipsis-Labs/keypair-vfr
ngundotra Nov 21, 2024
cb90be6
add command to get pda
ngundotra Nov 21, 2024
939333e
if no CLI config use default mainnet api
ngundotra Nov 21, 2024
5c13843
Merge pull request #98 from Ellipsis-Labs/list-pdas
ngundotra Nov 21, 2024
379e88b
Get commit hash from remote
Woody4618 Nov 22, 2024
4558801
Merge pull request #99 from Woody4618/commit-hash
ngundotra Nov 22, 2024
593b058
Update Cargo.toml
ngundotra Nov 22, 2024
3d169a1
Merge pull request #100 from Ellipsis-Labs/release-0.3.1
ngundotra Nov 22, 2024
eaf1f69
update lockfile w v0.3.1
ngundotra Nov 22, 2024
5dc0b38
add remote get-status
ngundotra Dec 2, 2024
9789ce7
add get-job
ngundotra Dec 2, 2024
3a0e292
add submit-job and checks for on-chain PDA before submission
ngundotra Dec 2, 2024
c6b0406
add better error message for PDA & enforce mainnet check on url
ngundotra Dec 3, 2024
f0ae855
Merge pull request #104 from Ellipsis-Labs/verify-with-signer
ngundotra Dec 5, 2024
c53eec2
Add priority fee instruction
Woody4618 Dec 9, 2024
abe450e
Fix abort signal
Woody4618 Dec 9, 2024
6509642
Add Skip build to verify-from-repo
Woody4618 Dec 9, 2024
2ff2e3b
Upload on chain data before --remote is triggered
Woody4618 Dec 16, 2024
927ecfd
Code review
Woody4618 Dec 17, 2024
8f7c260
Merge pull request #107 from Woody4618/error-handling
ngundotra Dec 18, 2024
83d1830
refactor & add export-pda-tx to handle exporting of the pda creation tx
ngundotra Dec 17, 2024
37373da
refactor into its own function
ngundotra Dec 17, 2024
c74d6dd
switch update/initialize ix based on whether or not pda exists
ngundotra Dec 17, 2024
80ba682
remove dead code
ngundotra Dec 18, 2024
6734e00
update prompt and function name
ngundotra Dec 18, 2024
88e2231
cargo clippy fix
ngundotra Dec 18, 2024
74facb5
Merge pull request #109 from Ellipsis-Labs/export-pda-tx
ngundotra Dec 18, 2024
f2a5a9f
use verify-with-signer on --remote, same as remote submit-job, to mak…
ngundotra Dec 19, 2024
3eb5929
clippy
ngundotra Dec 19, 2024
24735b9
remove unused function
ngundotra Dec 19, 2024
4920e69
Merge pull request #112 from Ellipsis-Labs/verify-with-signer-on-remote
ngundotra Dec 19, 2024
c9bce4c
release v0.4.0
ngundotra Dec 18, 2024
78b5264
Merge pull request #111 from Ellipsis-Labs/release-v0.4.0
ngundotra Dec 19, 2024
5f803c4
Update README.md
Woody4618 Dec 3, 2024
0ada04f
add maintainers email with bug disclosure
ngundotra Dec 5, 2024
7d60bdf
Merge pull request #114 from Ellipsis-Labs/update-docs
ngundotra Dec 19, 2024
e99a3f8
remove unused current dir arg and add cargo args parsing
ngundotra Dec 20, 2024
38f6e27
Merge pull request #117 from Ellipsis-Labs/export-pda-tx-cargo-args
ngundotra Jan 6, 2025
a4b8448
Update Dockerfiles
ngundotra Jan 15, 2025
92d3197
Merge pull request #128 from Ellipsis-Labs/autopr-update-dockerfiles
ngundotra Jan 15, 2025
83f3c33
Update image whitelist
ngundotra Jan 15, 2025
5f5e7a4
Merge pull request #129 from Ellipsis-Labs/autopr-update-image-whitelist
ngundotra Jan 15, 2025
08df482
Create build@sha256:75b75eab447ebcca1f471c98583d9b5d82c4be122c470852a…
oubiad Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {}
}
21 changes: 8 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,18 @@ jobs:
matrix:
name: [
linux,
windows,
macos
]

include:
- name: linux
os: ubuntu-latest
artifact_path: target/release/verifier-cli
asset_name: verifier-cli-linux
- name: windows
os: windows-latest
artifact_path: target/release/verifier-cli.exe
asset_name: verifier-cli-windows
artifact_path: target/release/solana-verify
asset_name: solana-verify-linux
- name: macos
os: macos-latest
artifact_path: target/release/verifier-cli
asset_name: verifier-cli-macos
artifact_path: target/release/solana-verify
asset_name: solana-verify-macos
steps:
- name: Checkout code
uses: actions/checkout@v1
Expand All @@ -60,13 +55,13 @@ jobs:
- name: Rename executable based on OS
env:
ASSET_NAME: ${{matrix.asset_name}}
EXEC_PATH: $${{matrix.artifact_path}}
EXEC_PATH: ${{matrix.artifact_path}}
run: |
echo "asset name: $ASSET_NAME executable path: $EXEC_PATH"
mv EXEC_PATH $ASSET_NAME
echo "asset name: ${ASSET_NAME} executable path: ${EXEC_PATH}"
mv ${EXEC_PATH} ${ASSET_NAME}

- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
files: $ASSET_NAME
files: ${{matrix.asset_name}}
fail_on_unmatched_files: true
56 changes: 56 additions & 0 deletions .github/workflows/generate_dockerfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Generate Dockerfiles

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
generate-dockerfiles:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ vars.ROBO_PR_APP_ID }}
private-key: ${{ secrets.ROBO_PR_CLIENT_SECRET }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install dependencies with uv
run: |
uv sync --all-extras --dev

- name: Run generate_dockerfiles.py
run: uv run generate_dockerfiles.py

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update Dockerfiles
title: 'Update Dockerfiles'
body: |
This PR updates the Dockerfiles in the `docker/` directory.

Generated automatically by the Generate Dockerfiles workflow.
branch: autopr-update-dockerfiles
delete-branch: true
base: master
labels: |
automated pr
dockerfiles
88 changes: 88 additions & 0 deletions .github/workflows/publish_all_dockerfiles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Publish All Changed Images

on:
workflow_dispatch:
inputs:
commit_hash:
description: 'Commit hash to compare from'
required: true
type: string


jobs:
detect_changes:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-matrix.outputs.versions }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: set-matrix
run: |
CHANGED_FILES=$(git diff --name-only --diff-filter=d ${{ github.event.inputs.commit_hash }} ${{ github.sha }} | grep '^docker/v.*\.Dockerfile$' || true)
echo "CHANGED_FILE=$CHANGED_FILES"
if [ -n "$CHANGED_FILES" ]; then
echo "$(echo "$CHANGED_FILES" | jq -R -s 'split("\n") | map(select(length > 0)) | map(.[8:-11])' | tr -d '[:space:]')"
echo "versions=$(echo "$CHANGED_FILES" | jq -R -s 'split("\n") | map(select(length > 0)) | map(.[8:-11])' | tr -d '[:space:]')" >> $GITHUB_OUTPUT
else
echo "versions=[]" >> $GITHUB_OUTPUT
fi
echo $GITHUB_OUTPUT
- name: Display matrix
run: echo "${{ steps.set-matrix.outputs.versions }}"

push_to_registries:
needs: detect_changes
if: ${{ needs.detect_changes.outputs.versions != '[]' }}
strategy:
matrix:
version: ${{ fromJson(needs.detect_changes.outputs.versions )}}
name: Push Docker images to docker.io
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Report version
run: echo "Pushing Docker image for version ${{ matrix.version }}"

- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
docker.io/solanafoundation/solana-verifiable-build

- name: Build and push Docker images
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: docker/
file: docker/v${{ matrix.version }}.Dockerfile
push: true
tags: |
${{ steps.meta.outputs.tags }}
docker.io/solanafoundation/solana-verifiable-build:${{ matrix.version }}
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: index.docker.io/solanafoundation/solana-verifiable-build
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
57 changes: 57 additions & 0 deletions .github/workflows/publish_dockerfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Publish Docker Image

on:
workflow_dispatch:
inputs:
version:
description: 'Solana version to generate Dockerfile for (e.g., 1.16.0)'
required: true
type: string

jobs:
push_to_registries:
name: Push Docker image to ghcr.io
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
docker.io/solanafoundation/solana-verifiable-build

- name: Build and push Docker images
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: docker/
file: docker/v${{ github.event.inputs.version }}.Dockerfile
push: true
tags: |
${{ steps.meta.outputs.tags }}
docker.io/solanafoundation/solana-verifiable-build:${{ github.event.inputs.version }}
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: index.docker.io/solanafoundation/solana-verifiable-build
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
39 changes: 39 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Integration Tests

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false # Continue with other tests even if one fails
matrix:
test_name:
- test_phoenix_v1
- test_squads_v3
- test_drift_v2
- test_marginfi_v2
- test_local_example
- test_verify_from_image
- test_games_preset
- test_agave_2_1
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build

- name: Run ${{ matrix.test_name }}
run: cargo test ${{ matrix.test_name }} -- --nocapture
61 changes: 61 additions & 0 deletions .github/workflows/update_whitelist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Update Docker Image Whitelist

on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docker/**'

permissions:
contents: write
pull-requests: write

jobs:
update-docker-image-whitelist:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ vars.ROBO_PR_APP_ID }}
private-key: ${{ secrets.ROBO_PR_CLIENT_SECRET }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install dependencies with uv
run: |
uv sync --all-extras --dev

- name: Run generate_dockerfiles.py
run: uv run update_image_whitelist.py

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update image whitelist
title: 'Update Image Whitelist'
body: |
This PR updates `image_config.rs` with the latest published Docker image tags.

Generated automatically by the Update Docker Image Whitelist workflow.
branch: autopr-update-image-whitelist
delete-branch: true
base: master
labels: |
automated pr
image whitelist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/target
.DS_Store
Loading